【发布时间】:2015-01-29 22:37:02
【问题描述】:
我需要在我的网络浏览器控件中选中一个复选框,这个复选框没有 ID 所以我不能使用 GetElementById() 方法
这是复选框的 HTML 代码
<input type="checkbox" class="shoulduselikescheckbox" defaultchecked="true" >
【问题讨论】:
-
你可以尝试使用xpath。看到这个链接stackoverflow.com/questions/25355386/…