I have a scenario where I am trying to copy a range of cells (Single Column) from Excel and paste the range in a textarea tag in Chrome browser, which is identified using ID. I am using Excel VBA and Selenium.
There seems to be no error when copying of the range. However, when I try to paste the range in the textarea using Selenium Keys, I am currently unable to paste the values. As my Excel range can sometimes extend to more than 1000 rows, I am out of option to paste the cells one after the other, as the browser times out.
My html code is something like this.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
<div>
<div>
<textarea> id = "textarea1"
</textarea>
</div>
</div>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
I have tried using the below three codes, in vain.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
selenium.findElementByID("textarea1").sendkeys (keys.Control & "v")
selenium.findElementByID("textarea1").sendkeys keys.Control, "v"
selenium.findElementByID("textarea1").sendkeys (keys.Control +"v")
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Can someone help me identify the issue here and the workaround.