Link to home
Start Free TrialLog in
Avatar of searchsanjaysharma
searchsanjaysharma

asked on

how to find the element and write its XPath

Hi,

Here is the XML in which I want to find the element IMG id="SearchListToolbar_Item_2_img. Can some1 plz write the X-Path here to locate this element?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML Transitional//EN"><META http-equiv="Content-Type" content="text/html; charset=utf-8">

 

<HTML>

<BODY ms_positioning="FlowLayout">

<FORM id="Form1" name="Form1" action="HoldList.aspx" method="post">

<TABLE style="TABLE-LAYOUT: fixed; WIDTH: 100%" height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">

<TBODY>

<TR height="1%">

<TD width="100%">

<DIV class="toolbar" id="SearchListToolbar" style="FONT-SIZE: 9pt; Z-INDEX: 1000; FONT-FAMILY: Arial; HEIGHT: 26px; TEXT-ALIGN: left">

<TABLE style="TABLE-LAYOUT: fixed; FONT-SIZE: 9pt; WIDTH: 100%; FONT-FAMILY: Arial; HEIGHT: 100%" cellSpacing="0" cellPadding="0" border="0">

<TBODY>

<TR>

 

<TD onmouseup="javascript:igtbar_mouseUp(this,event,true);" class="igtb_Button toolbarbutton" onselectstart="javascript:{return false;}" onmousedown="javascript:igtbar_mouseDown(this,event,true,false);" id="SearchListToolbar_Item_2" onmouseover="javascript:igtbar_mouseOver(this,event,true);" onmouseout="javascript:igtbar_mouseOut(this,event,true,false);">

<IMG id="SearchListToolbar_Item_2_img" style="MARGIN: 0px" src="http://10.63.50.97:12080/web.ui/images/icon-add.gif" align="absMiddle" igimg="1" />

<SPAN igtxt="1">Add</SPAN>

</TD>

</TR>

</TBODY>

</TABLE>

</DIV>

</TD>

</TR>

</TBODY>

</TABLE>

</FORM>

</BODY>

</HTML>

 
ASKER CERTIFIED SOLUTION
Avatar of kris_per
kris_per

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of searchsanjaysharma
searchsanjaysharma

ASKER

Can you please provide me the X-Path from the table for this element?
SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial