<html>
<head>
<title>Set Timeout</title>
<style>
.red_box {background-color: red; width = 20%; height: 100px; border: none;}
</style>
<script>
function show_div(){
d = document.createElement('div');
d.className = "red_box";
document.body.appendChild(d);
}
</script>
</head>
<body>
<button id = "b1" onclick = "show_div()">click1</button>
<button id = "b2" onclick = "show_div()">click2</button>
</body>
</html>
@Test
public void TestRun() throws Exception{
String url="D:\\Selenium\\JavaS\\JavaTest\\html\\waitforcondition\\Wait.html";
//方法一:设置10秒
dr.manage