摘要:
①只有确认按钮的弹框 WebDriver driver = new ChromeDriver(); driver.get("http://xxx"); Alert alert = driver.switchTo().alert(); alert.accept(); ②有确认和取消按钮的弹框 WebD 阅读全文
posted @ 2023-04-05 20:36
iTao0128
阅读(135)
评论(0)
推荐(0)
摘要:
将driver声明为静态 : 如:在A类中,定义public static WebDriver driver; 在后续用例中,将driver赋值为 A.driver 阅读全文
posted @ 2023-04-05 20:31
iTao0128
阅读(20)
评论(0)
推荐(0)
摘要:
Page Object模式 阅读全文
posted @ 2023-04-05 18:48
iTao0128
阅读(15)
评论(0)
推荐(0)
摘要:
1.安装create testng xml插件 2.全选用例class文件,右键选择create testng xml,自动生成testng.xml文件 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE suite SYSTEM "http://tes 阅读全文
posted @ 2023-04-05 18:05
iTao0128
阅读(43)
评论(0)
推荐(0)

浙公网安备 33010602011771号