On Tue, Jul 7, 2009 at 7:52 PM, Dylan mej...@gmail.com wrote:
I've even copied the exact html and ruby code given in the What to do
for elements not having class in Watir? section, and I still get nil
returned.
I think you have to have newer version of rexml (3.1.6) than the one shipped
with
I have version REXML 3.1.7.2 installed.
I have managed to find a workaround now (Adding the font tag to watir)
that probably works better than an xpath would, in fact, but from what
I've seen very few people have gotten xpaths to work with watir (at
least the element_by_xpath part) in the first
Well, I finally figured out how to add font to Watir, as you
suggested, and that seems to work great. Thank you so much!
-Dylan
On Jul 3, 12:42 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
On Fri, Jul 3, 2009 at 12:54 AM, Dylan mej...@gmail.com wrote:
font class=link title=Click
On Fri, Jul 3, 2009 at 12:54 AM, Dylan mej...@gmail.com wrote:
font class=link title=Click Here onclick=javaScriptCommand
();Click Here/font
Try this:
browser.element_by_xpath(//fo...@title='Click Here']/).click
More information:
http://wiki.openqa.org/display/WTR/XPath
And you can always