Hi,
Im trying to check a checkbox on the following element using xpath but
no matter what I try it doesnt seem to work. I keep getting an
error:
(Watir::Exception::UnknownObjectException):
HTML:
<input type="checkbox" onclick="javascript:toggleOutputField('data://
Demographic/Gender', 'QueryDisplayTemplate');"/>
My xpath statements:
With a * before //
browser.checkbox(:xpath, "*//input
[...@onclick='javascript:toggleOutputField(\'data://Demographic/Gender\',
\'QueryDisplayTemplate\');']").set
With just //input
browser.checkbox(:xpath, "//input
[...@onclick='javascript:toggleOutputField(\'data://Demographic/Gender\',
\'QueryDisplayTemplate\');']").set
Something wrong? Any suggestions?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---