Need to select em in Selenium -


i using selenium ide in chrome.

i have trouble it's ext js, class names generated. might having trouble due class name "x-list-body"?

i want click on "this person here yes", this:

click: //div[@class='x-list']//em[.='this person here yes'] 

here html webpage, excuse mess:

<div class="x-list-body"> <div id="ext-gen159" class="x-list-body-inner"> <dl> <dt style="width:100%;text-align:left;"> <em unselectable="on" "="">woot moot boot</em> </dt> <div class="x-clear"> </div> </dl> <dl> <dt style="width:100%;text-align:left;"> <em unselectable="on" "="">this sparta</em> </dt> <div class="x-clear"></div></dl> <dl> <dt style="width:100%;text-align:left;"> <em unselectable="on" "="">henry print</em> </dt> <div class="x-clear"></div> </dl> <dl> <dt style="width:100%;text-align:left;"> <em unselectable="on" "="">minsy blowman</em> </dt> <div class="x-clear"></div> </dl> <dl class=""> <dt style="width:100%;text-align:left;"> <em unselectable="on" "="">this person here yes</em> </dt> <div class="x-clear"></div> </dl> <dl class=""> <dt style="width:100%;text-align:left;"> <em unselectable="on" "="">another cool person</em> </dt> <div class="x-clear"></div> </dl> </div> </div> 

please not give me javascript code etc..., using firefox addon ide.

thank you!

driver.findelement(by.xpath("//em[contains(text(),'this person here yes')]")).click(); 

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -