Monthly Archives: October 2014

Watir-classic not consistently opening the jQueryUI autocomplete list of suggestions

Problem When you type text into the jQueryUI autocomplete control, the list of suggested options are supposed to appear. With Watir-WebDriver (at least with Firefox), you can simply set the text field and the list of options appears. However, when … Continue reading

Posted in Watir, Watir-Classic | Tagged , | Leave a comment

UnknownObjectException with element not found in the cache message

Problem When a Watir::Exception::UnknownObjectException occurs, the error message is usually: unable to locate element, using {:id=>”nonexistent”, :tag_name=>”a”} (Watir::Exception::UnknownObjectException) However, sometimes the message is: Element not found in the cache – perhaps the page has changed since it was looked up … Continue reading

Posted in Watir, Watir-Webdriver | Leave a comment

Randomly set a radio button within a group

Problem A page contains a radio button group, ie multiple radio buttons with the same name attribute, and requires that one of the buttons be selected. Neither is selected by default. When inputting the form, how can one be randomly … Continue reading

Posted in Watir, Watir-Classic, Watir-Webdriver | Tagged , | Leave a comment