Paste from clipboard to a Search Field using Enter Text (wdi5) or SetValue (wdio) #370
Unanswered
Scotti-Scholter-Marichal
asked this question in
Q&A
Replies: 1 comment 3 replies
-
as far as I am aware of, WebdriverIO does not have a native functionality for pasting values out of you clipboard. Maybe you could try to include the Regarding your second issue: Could you maybe create a separate Issue for that and maybe describe it in more detail? Thanks! Regards |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Good day,
For my application I need to paste some text from my clipboard to a search field. The Uiveri5 equivalent would have been
await searchField.sendKeys(protractor.Key.chord(protractor.Key.CONTROL, "v")
If anyone knows of a wdi5 equivalent I would greatly appreciate it. In the following I will explain what I have already tried.
enterText
only supports regular text and no key strokes/combinations. Please advise me otherwise.await searchField.setValue(text)
(which is a wdio element method) I get this error :This error occurs regardless of whether the text argument is a combination of key strokes or just a regular string.
I have also checked whether the element exists, is displayed, is enabled and is clickable. All of these are true so I don't know what the problem could be.
I would highly appreciate any help.
Thank you.
Best wishes,
Scotti
Beta Was this translation helpful? Give feedback.
All reactions