B4J Question Selenium sending Special Keys

Peter Lewis

Active Member
Licensed User
Longtime User
Hi All,

I am trying to send a Ctrl-V in Selenium using Alberto's Wrap.
This is to past a Picture which is in the Computer's Clipboard. If I presss CTRL-V on the keyboard, then it works.

At the Selenium website if shows I should use

SendKeys(Keys.Control + "v")

Which does not work

So I have tried sending ASCII codes , also does not work

Below is sending test via xpath which is working

B4X:
    objSelenium.SendKeysByXPath("/html/body/div[1]/div/div[1]/div/div[4]/div/div/div[1]/div/div[2]/div/div/div/div/div[1]/form/div/div[1]/div/div/div[1]/div/div[2]/div[1]/div[1]/div[1]/div/div/div/div/div[2]/div/div/div/div","Enter Text - WORKING ")

I did look at using jAWTRobot but it is not suitable for what i want to do

And ideas would be appreciated, thank you
 
Last edited:
Top