Chuck. This was a non-standard HTML attribute so I had to use "element_by_xpath" to connect directly to the object through win32ole and then I was able to invoke raw DOM methods upon it.
Aidy 2009/3/16 Chuck van der Linden <sqa...@gmail.com>: > >>> I am unable to retrieve an attribute of the below HTML snippet through > standard Watir methods > > what did you try? that looks like a simple link to me, you should be > able to deal with it via standard .link type methods > > without seeing a larger sample of the html surrounding that item, it's > difficult to know why you might not have been able to address it, but > offhand I'd start by asking if perhaps it's inside a frame or > something? > > did you try using the IE developer toolbar to have a look at that item > and see where it exists inside the DOM of the page? > > On Mar 14, 9:23 am, aidy lewis <aidy.le...@googlemail.com> wrote: >> Hi, >> >> I am unable to retrieve an attribute of the below HTML snippet through >> standard Watir methods >> >> <a id="dtrSeriesRightsWindowAnchor" href="http://site.co.uk/index.htm" >> title="Awaiting approval"> >> >> I have tried the following XPath >> >> browser.element_by_xpath("//a...@id='dtrSeriesRightsWindowAnchor']...@title") >> >> I am hooking onto the obejct, but I am unsure on how to retrieve the >> value of title. >> >> Thanks >> >> Aidy > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to firstname.lastname@example.org Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---