Thanks in advance!

I am trying to click on the following element using xpath by
referencing its unique onclick property:

<a onclick="dijit.byId('queryDetail').href='DISPLAY-QUERY-SUMMARY.do?
taskId=6&type=details'; dijit.byId('queryDetail').show(); return
false;" href="">details</a>

I have tried several of the following and not sure what Im doing
wrong.  I keep getting a "NoMethodError: undefined method `click' for
nil:NilClass".  As you can see the onclick property has various
apostrophes, ampersand, etc.  Not sure if this is the cause of my
troubles.

I have tried:

@browser.element_by_xpath("//a...@onclick='dijit.byId(\'queryDetail
\').href=\'DISPLAY-QUERY-SUMMARY.do?taskId=6\&type=details\';
dijit.byId(\'queryDetail\').show(); return false;']").click

@browser.element_by_xpath("//a...@onclick='dijit.byId
('queryDetail').href='DISPLAY-QUERY-SUMMARY.do?
taskId=0&type=sql'; dijit.byId('queryDetail').show
(); return false;']").click()pos;).show
(); return false;']").click()
--~--~---------~--~----~------------~-------~--~----~
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