您的位置:軟件測試 > 開源軟件測試 > 開源功能測試工具 > Selenium
Selenium2.0功能測試之Alert/Confirm/Prompt的處理
作者:網(wǎng)絡(luò)轉(zhuǎn)載 發(fā)布時間:[ 2013/10/18 10:20:55 ] 推薦標簽:

  下面是測試頁面alert_demo.html源代碼
<html>
<head>
<title>Alert</title>
<script type="text/javascript">
function testAlert(){
alert("測試Alert");
}
function testConfirm(){
confirm("你喜歡自動化測試嗎?");
}
function testPrompt(){
var content = prompt("你為什么喜歡自動化?");
document.write(content);
}
</script>
</head>
<body>
<h2>Test Alert</h2>
<input type="button" value="alert" onclick="testAlert()" id="alert"/>
<input type="button" value="confirm" onclick="testConfirm()" id="confirm"/>
<input type="button" value="prompt" onclick="testPrompt()" id="prompt"/>
</body>
</html>

相關(guān)鏈接:
上一頁12下一頁
軟件測試工具 | 聯(lián)系我們 | 投訴建議 | 誠聘英才 | 申請使用列表 | 網(wǎng)站地圖
滬ICP備07036474 2003-2017 版權(quán)所有 上海澤眾軟件科技有限公司 Shanghai ZeZhong Software Co.,Ltd