On Tue, Sep 8, 2009 at 12:48 PM, rs77 <rishaind...@gmail.com> wrote:
> 'NoMethodError: undefined method `element'

You have this code:

ie.element

And the error says `undefined method `element'`. That means method `element`
is not defined for object that variable `ie` points to. Where did you get
that code?

Did you read this?

http://wiki.openqa.org/display/WTR/XPath

This should work:

browser.cell(:xpath, "//td[contains(@onclick ,
'MainMenu.jmp?pid=97&pName=Areas And Branches')]").click

Željko

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to