我想測試一個通過jquery插件實現的多選select selected。geb/selenium測試,選擇了多選
選擇的HTML:
<select id="pickUsers" name="users" multiple="true" class="many-to-many" >
<option value="1" >me</option>
<option value="3" >leader</option>
<option value="2" >test</option>
</select>
的例外是:
org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted with
我認爲它有一些待辦事項與display: none
CSS屬性和閱讀已經很多關於它,但沒有找到一個解決方案正是我的問題
編輯:
個我的硒綁定是:
users {$("select", name:"users")}
我試着與幾個任務:
users = ["me", "test"] or
users = [1,2,3]
users = ["1","2","3"]
您使用的是哪種硒語言綁定? – alecxe
我用綁定更新了我的問題 – user3667018