I think what you're looking for is a way to use Watir to attach to or investigate that TD element. You can find an exact example of that in the Watir Wiki using XPath:
http://wiki.openqa.org/display/WTR/XPath puts ie.cell(:xpath, "//i...@src='3.jpg']/../").text Adam On Jan 12, 9:28 am, Sanu <ure...@gmail.com> wrote: > Hi, > > I have an object with TD tag with out any object type specified. > That is actually a tag in the application. > > please find the HTML code below > > <TR> > <TD class=styleTabUnSelected id=S3Role> > #text > <SCRIPT> > > and goes like this > > if i spy the tab i am getting the below Attributs, > Name Value > align left > background-image(css) url(../images/AsTabBackMiddle.gif) > class styleTabUnSelected= > color(css) #000000 > cursor(css) pointer > height 24 > id S3Role > onclick JavaScript:pushTab('S3Role'); > onmouseout JavaScript:mouseOutTab('S3Role') > onmouseover JavaScript:mouseOverTab('S3Role') > style BACKGROUND-IMAGE: url(../images/ > AsTabBackMiddle.gif); CURSOR: pointer; COLOR: #000000 > > I am very new to Ruby kindly provide your ideas. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com