Browser 如何勾选所有复选框watin
我想选中页面中的所有复选框 如何选择所有复选框并启用所有复选框Browser 如何勾选所有复选框watin,browser,checkbox,watin,checked,Browser,Checkbox,Watin,Checked,我想选中页面中的所有复选框 如何选择所有复选框并启用所有复选框 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
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;
}
'
'
//获取页面上复选框的计数。
int countOfCheckBox=browser.checkbox.Count;
对于(int i=0;i
感谢tharindu编辑我的问题,我自己解决。使用此代码。