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:igtb ar_mouseUp (this,even t,true);" class="igtb_Button toolbarbutton" onselectstart="javascript: {return false;}" onmousedown="javascript:ig tbar_mouse Down(this, event,true ,false);" id="SearchListToolbar_Item _2" onmouseover="javascript:ig tbar_mouse Over(this, event,true );" onmouseout="javascript:igt bar_mouseO ut(this,ev ent,true,f alse);">
<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>
Here is the XML in which I want to find the element IMG id="SearchListToolbar_Item
<!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:igtb
<IMG id="SearchListToolbar_Item
<SPAN igtxt="1">Add</SPAN>
</TD>
</TR>
</TBODY>
</TABLE>
</DIV>
</TD>
</TR>
</TBODY>
</TABLE>
</FORM>
</BODY>
</HTML>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
OK
ASKER