[英]Selenium/capybara: uncheck() does not work in chrome web driver
我正在使用Selenium / capybara uncheck(“ permission_set_item_edit_permission”)取消選中一個框。 (請參閱示例HTML代碼)。 它與Firefox正常工作。 但是Chrome驅動程序不會取消選中該框。 似乎找到了元素,但取消選中不起作用。 chrome驅動程序有什么特別之處嗎? 總的來說,我發現鉻比FF更精細。
<tr class="entity">
<th class="bold">Item1</th>
<td>
<div class="permission-records">
<label> </label>
<label> </label>
<label><input name="permission_set[item_edit_permission]" type="hidden" value="0"><input id="permission_set_item_edit_permission" name="permission_set[item_edit_permission]" type="checkbox" value="1"> Edit Global</label>
</div>
</td>
</tr>
托馬斯·沃爾波萊(Thomas Walpole)發表評論后,認為這一問題得到解決。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.