Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

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

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.
avatar
tarun3kumar
Master
Master
Posts : 186
Join date : 2012-02-14
http://seleniumtests.com

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

Wed May 15, 2013 11:49 am
a small snippet of html may help in debugging
avatar
yugandhar87
Posts : 9
Join date : 2013-05-14

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

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
avatar
Gambhir
Posts : 3
Join date : 2013-05-16

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

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

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

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

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.
avatar
Gambhir
Posts : 3
Join date : 2013-05-16

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

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
avatar
yugandhar87
Posts : 9
Join date : 2013-05-14

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

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

Unable to select textarea values using webdriver (controls are develped using BMC remedy software) Empty 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