Using FireWatir's element_by_xpath on my Mac, I get the expected type
for the element. For example, on the Google home page:

irb(main):008:0> b.element_by_xpath("//*...@name='btnG']").class
=> FireWatir::Button

But with Watir (on Windows, of course), I always get an instance of
WIN32OLE back. For the same example:

irb(main):018:0> b.element_by_xpath("//*...@name='btnG']").class

Is there a way I can get the Button object I expect from
element_by_xpath with Watir?



You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to
Before posting, please read the following guidelines:
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to