使用Ruby和Watir设置单选按钮

对,我遇到了一段代码问题。 我知道如何设置单选按钮我可以在大多数网站上进行。 但是当试图设置下面这段代码给出的值时,我无法使其工作。 我已尝试使用标签ect“等待”,“父设置”并搜索各种类型。 任何人都可以指出我正确的方向。

我收到此错误:

 [remote server] file:///var/folders/81/j_87g_h12_x7bkl2w58zwqr00000gn/T/webdriver-profile20131024-1211-10eh16l/extensions/fxdriver@googlecode.com/components/command_processor.js:8210:in `fxdriver.preconditions.visible': Element is not currently visible and so may not be interacted with 

谢谢

Maximillion

我怀疑你有时间问题。 试试这个:

 Watir::Wait.until { @browser.element.visible?, thing } 
Interesting Posts