1

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

<div class="CheckBoxContainer">

<ol>
    <li>
        <span class="radio" style="background-position: 0px 0px;"></span>
        <input class="styled" type="radio" value="1" name="clocksource"></input>
        <label class="dialogRT">

            Internal

        </label>
    </li>
    <li>
        <span class="radio" style="background-position: 0px 0px;"></span>
        <input class="styled" type="radio" value="3" name="clocksource"></input>
        <label class="dialogRT">

            External AES50

        </label>
    </li>
    <li>
        <span class="radio" style="background-position: 0px -50px;"></span>
        <input class="styled" type="radio" checked="checked" value="2"       name="clocksource"></input>
        <label class="dialogRT">

            External Snake

        </label>
    </li>
</ol>

我收到此错误:

[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 

谢谢

千亿

4

1 回答 1

0

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

Watir::Wait.until { @browser.element.visible?, thing  }
于 2014-01-16T19:46:45.153 回答