Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default How to write some text in textarea on a webpage using Selenium WebDriver

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 538
Default How to write some text in textarea on a webpage using Selenium WebDriver

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default How to write some text in textarea on a webpage using Selenium WebDriver

Thanks Auric.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Write to Webpage [email protected] Excel Programming 0 November 14th 07 01:44 AM
In Excel 2000 can you write VBA code to pull data from a webpage? kurt Excel Programming 2 September 24th 04 05:59 AM
In Excel 2000 can you write VBA code to pull data from a webpage? kurt Excel Programming 1 September 24th 04 01:26 AM
How to retrieve and write data to a webpage Calligra[_2_] Excel Programming 0 August 3rd 04 02:15 PM
Macro to write to webpage & query results Ross[_8_] Excel Programming 0 July 8th 04 02:34 AM


All times are GMT +1. The time now is 06:54 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"