Checkbox SimpleTest浏览器所有复选框名称相同
使用SimpleTest,如果第三个复选框都使用相同的名称,我将如何选中它们Checkbox SimpleTest浏览器所有复选框名称相同,checkbox,browser,simpletest,Checkbox,Browser,Simpletest,使用SimpleTest,如果第三个复选框都使用相同的名称,我将如何选中它们 <input type='checkbox' class='style' name='same' value="First" /> <input type='checkbox' class='style' name='same' value="Second" /> <input type='checkbox' class='style' name='same' value="Third"
<input type='checkbox' class='style' name='same' value="First" />
<input type='checkbox' class='style' name='same' value="Second" />
<input type='checkbox' class='style' name='same' value="Third" />
<input type='checkbox' class='style' name='same' value="Forth" />
或者,当我使用SimpleTest()获取URL时,是否可以在输入中添加ID?我已经找到了答案。这切换了正确的框
$browser->setField("same", array("Third"));