how to determine xpaths for ajax element.

Posted by Anjali on Stack Overflow See other posts from Stack Overflow or by Anjali
Published on 2010-03-29T07:36:04Z Indexed on 2010/03/29 7:43 UTC
Read the original article Hit count: 280

Filed under:

I need to detemine xpath for element 'mainForm:queryConfigure:fetchReport'.

<span id="mainForm:queryConfigure:j_id18"> <table id="mainForm:queryConfigure:j_id19" class="showReportTable" align="center"> <tbody> <tr> <td> <input id="mainForm:queryConfigure:fetchReport" type="image" src="images/show_report.gif" name="mainForm:queryConfigure:fetchReport"/> </td> </tr> </tbody> </table> </span>

i tried selenium.click("//input[@id='mainForm:queryConfigure:fetchReport'][@type='image'][@src='images/show_report.gif']"); AND selenium.click("//input[@id='mainForm:queryConfigure:fetchReport']");

One more case:

<div class="tabUnselectedText" align="center"> <a href="javascript:renderPage('mainForm:consoleBeanId.1','Notifications' , 'notifications.faces');">Notifications</a> </div>

© Stack Overflow or respective owner

Related posts about selenium-rc