我很震惊地识别出一个带有“确定”按钮的弹出窗口,该按钮被调用作为点击单选按钮的过程。
我需要在弹出窗口中单击“确定”按钮,否则屏幕会冻结,我们无法继续测试用例。
<HTML CODE>
<td class="req" align="right"> Exposure: </td>
<td align="left">
<input type="radio" value="1" onclick="javascript:onClick_exposure_type(this);" name="exposure_type">
Open
<input type="radio" value="2" onclick="javascript:onClick_exposure_type(this);" name="exposure_type">
Closed
</td>
<HTML CODE>
当我在selenium IDE中记录此事件时,我得到以下内容
click("xpath=(//input[@name='exposure_type'])[2]")
selectWindow("null")
clickAndWait("name=btnOkay")
我尝试过做这样的事情&amp;没有帮助
executeScript("window.confirm = function(msg){return true;};")
任何想法都会感激不尽。