Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am using below code to write text in textarea on a webpage. WebDriver driver=new FirefoxDriver(); driver.findElement(By.id("description")).sendkeys( "some value"); // This code write character by character. I tried same with JavascriptExecutor with below code for textbox(input tag) but it doesn't work for textarea. WebElement element=driver.findElement(By.id("description")); JavascriptExecutor js=(JavascriptExecutor)driver; js.executeScript("arguments[0].setAttribute('value',arguments[1]);",element,"some value); Please help me to write some text in textarea tag. That will be replacement of "sendKeys()". Thanks Sachin Ahuja |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
sachin ahuja wrote:
I am using below code to write text in textarea on a webpage. [snip] I tried same with JavascriptExecutor with below code for textbox(input tag) but it doesn't work for textarea. [snip] Please help me to write some text in textarea tag. That will be replacement of "sendKeys()". Unfortunately, this group is dedicated to programming Microsoft Excel (thus the "excel" in the group name). I suggest starting with the SeleniumHQ support page: http://docs.seleniumhq.org/support/ That page says "The best place to ask for help is the user group": https://groups.google.com/forum/#!forum/selenium-users -- I'll try being nicer if you'll try being smarter. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Auric.
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Write to Webpage | Excel Programming | |||
In Excel 2000 can you write VBA code to pull data from a webpage? | Excel Programming | |||
In Excel 2000 can you write VBA code to pull data from a webpage? | Excel Programming | |||
How to retrieve and write data to a webpage | Excel Programming | |||
Macro to write to webpage & query results | Excel Programming |