Cannot select radio button that was added by JavaScript in watir

Posted by karlthorwald on Stack Overflow See other posts from Stack Overflow or by karlthorwald
Published on 2010-04-28T10:30:16Z Indexed on 2010/04/28 10:33 UTC
Read the original article Hit count: 297

Filed under:
|
|
|

This was added to the page later with jQuery:

<input name="pdfRadio" id="pdfRadioNo0" value="0" type="radio">

This code:

radio_id = "pdfRadioNo0"
ie.radio(:id, radio_id).set()

does not set it but returns an error message:

Watir::Exception::UnknownObjectException: Unable to locate element, using {:id=>"pdfRadioNo0"}

Does watir also find radio butons that were added later?

This is windows 32bit XP SP 3 , IE 7, watir 1.6.5, ruby 1.8.6

© Stack Overflow or respective owner

Related posts about watir

Related posts about html