Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to paste a muti line text on a textarea #3625

Closed
desis123 opened this issue Mar 22, 2025 · 1 comment
Closed

How to paste a muti line text on a textarea #3625

desis123 opened this issue Mar 22, 2025 · 1 comment
Labels
question Someone is looking for answers

Comments

@desis123
Copy link

desis123 commented Mar 22, 2025

I like to paste a multi lines text into text area. send_keys, press_keys are taking longer time for big text. So I like to paste that text into textarea , What is the best approach to do that.
I used
pyperclip.copy(text) copy that text into clipboard. I tried to use control+v without any luck.
element = sb.find_element("locator")
element.send_keys(Keys.CONTROL, 'v') is not working.

What is best approach I can follow . Actionchains or anything ?

@mdmintz mdmintz added the question Someone is looking for answers label Mar 22, 2025
@mdmintz
Copy link
Member

mdmintz commented Mar 22, 2025

sb.set_text(selector, text)

@mdmintz mdmintz closed this as completed Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Someone is looking for answers
Projects
None yet
Development

No branches or pull requests

2 participants