7Gabriel / selenium-vba

Automatically exported from code.google.com/p/selenium-vba
0 stars 0 forks source link

stimulate ctrl+v in chrome #162

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Operating system : Windows 7
.Net Framework version :
Office Version :
SeleniumWrapper version :

I am trying to stimulate ctrl+v in chrome. I wat to copy a table from excel an 
input it in the body of a message before it is sent out. 

I tried using the below code but did not get the result

selenium.sendkeys key.control, "v"

Please adivise

Original issue reported on code.google.com by nikhil.b...@gmail.com on 1 Jul 2015 at 2:39

GoogleCodeExporter commented 8 years ago
Please share your comments, as I am really stuck at this step

Original comment by nikhil.b...@gmail.com on 4 Jul 2015 at 5:45

GoogleCodeExporter commented 8 years ago
Ctrl+v doesn't work with chrome.
A work around would be to copy the data and write it using sendkeys.
[A1:B12].Copy
txt = driver.getClipBoard()
driver.sendKeys txt

Original comment by florentbr on 21 Jul 2015 at 6:38