Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

View previous topic View next topic Go down

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

Post by yugandhar87 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.

yugandhar87

Posts : 9
Join date : 2013-05-14

Back to top Go down

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

Post by tarun3kumar on Wed May 15, 2013 11:49 am

a small snippet of html may help in debugging

_________________
Thanks
Tarun K
Free Selenium Training

tarun3kumar
Master
Master

Posts : 186
Join date : 2012-02-14

http://seleniumtests.com

Back to top Go down

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

Post by yugandhar87 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

yugandhar87

Posts : 9
Join date : 2013-05-14

Back to top Go down

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

Post by Gambhir on Thu May 16, 2013 11:33 am

what is the problem with document.getElementById() method?I think it will work

Thanks
Gambhir

Gambhir

Posts : 3
Join date : 2013-05-16

Back to top Go down

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

Post by yugandhar87 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.

yugandhar87

Posts : 9
Join date : 2013-05-14

Back to top Go down

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

Post by Gambhir 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

Gambhir

Posts : 3
Join date : 2013-05-16

Back to top Go down

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

Post by yugandhar87 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?

yugandhar87

Posts : 9
Join date : 2013-05-14

Back to top Go down

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

Post by Sponsored content Today at 7:32 pm


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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