Watir Radio Button not found -
i want set radio button in watir not finding it:
html:
<input type="radio" style="-moz-user-focus: normal;" tabindex="2421" handlenativeevents="false" value="3g" $9a="$9b" $89="isc_radioitem_3" id="isc_1hv" name="network">
ruby:
if browser.radio(:value => '3g').exists? browser.radio(:value => '3g').set end
could because our code contains uppercase radio? (generated smartgwt)
any workarounds this?
another alternative. if it's not responding radio because it's not radio button (as watir understand it) need find way click object. can try clicking container see if works, if not you'll need use hardware click. can find hardware click solution duck punch (it's under 1 of answers: here). can customise code accept x , y modifiers, if like, can use .left_click hardware click element, including containers. left_click radio container x , y modifiers pointing radio button. slighly more dynamic hardware clicking on absolute x/y position, take mouse cursor off , use click screen. hope helps!
Comments
Post a Comment