On Thu, Mar 26, 2009 at 07:35, Vikas Tulashyam <vtulash...@gmail.com> wrote:
> I want to create a method by which I can perform any operation on a
> object by just passing the identifier of that object.

There is already a jira ticket for that, but it is not done yet:

http://jira.openqa.org/browse/WTR-103

Vote for it and it will get higher on list of things to do.

In the meantime, you can use xpath:

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

Something like:

ie.element_by_xpath("//area[contains(@href , 'PieChart.html')]/").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