Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想检查页面中的所有复选框。
如何选中所有复选框并启用所有?
var chk = browser.checkboxes.where(x => x.id("test string"));
您可以使用这种方法。
' //Getting the count of the check boxes on the page. int countOfCheckBox = browser.CheckBoxes.Count; for (int i = 0; i < countOfCheckBox; i++) { browser.CheckBoxes[i].Checked = true; } '