Share
Go down
yugandhar87
Posts : 9
Join date : 2013-05-14

Unable to select textarea values using webdriver (controls are develped using BMC remedy software)

on Tue May 14, 2013 10:14 pm
Unable to select textarea having more than 300 values using webdriver (controls are develped using BMC remedy software).



above text area having all countries in the world.

query: how to select required country name using webdrivers.

Kindly provide the solution for above issue and please provide information about any Jar files to handle BMC remedy software controls.

Thanks in advance.

Reddy.
tarun3kumar
Master
Master
Posts : 186
Join date : 2012-02-14
http://seleniumtests.com

Re: Unable to select textarea values using webdriver (controls are develped using BMC remedy software)

on Wed May 15, 2013 11:49 am
a small snippet of html may help in debugging

_________________
Thanks
Tarun K
Free Selenium Training
yugandhar87
Posts : 9
Join date : 2013-05-14

Re: Unable to select textarea values using webdriver (controls are develped using BMC remedy software)

on Wed May 15, 2013 4:27 pm
::<textarea class="text sr " id="arid536871014" style="width: 180px; height: 21px; top: 14px; left: 0px;" rows="1" cols="20" wrap="off" readOnly="readonly" maxlen="255" mdd="1" mstyle="2" armenu="EXP: IPSDK: ISO Country">::


Please find the above html snippet for debugging. Please do the needful.

Thanks,

Reddy
Gambhir
Posts : 3
Join date : 2013-05-16

Re: Unable to select textarea values using webdriver (controls are develped using BMC remedy software)

on Thu May 16, 2013 11:33 am
what is the problem with document.getElementById() method?I think it will work

Thanks
Gambhir
yugandhar87
Posts : 9
Join date : 2013-05-14

Re: Unable to select textarea values using webdriver (controls are develped using BMC remedy software)

on Thu May 16, 2013 4:36 pm
Thanks for reply Gambhir.

But My query is select required value from list of values in textarea.

Thanks
Reddy.
Gambhir
Posts : 3
Join date : 2013-05-16

Re: Unable to select textarea values using webdriver (controls are develped using BMC remedy software)

on Fri May 17, 2013 7:23 pm
Hi Reddy,

You can use following lines to extract values from text area:

WebElement element = driver.findElement(By.id("annualComments0"));
String text = element.getText();

Now you can use java to extract value from "text".I have checked this on my system and it is working fine.

thanks
Gambhir
yugandhar87
Posts : 9
Join date : 2013-05-14

Re: Unable to select textarea values using webdriver (controls are develped using BMC remedy software)

on Sat May 25, 2013 11:12 pm
Gambhir,
Thanks for u r information, i have checked it ,but getText() is not printing anything on console . Here i can able to see all countries only after clicking on text area. I guess Its dynamically fectching data from DB through javascript function. Any advice plz?
Sponsored content

Re: Unable to select textarea values using webdriver (controls are develped using BMC remedy software)

Back to top
Permissions in this forum:
You cannot reply to topics in this forum