随笔分类 -  Java-Seleniem

摘要://打开浏览器 Webdriver driver = new ChromeDriver(); //设置窗口大小 driver.manage().window().setSize(new Dimension(800,600)) //窗口最大化 driver.manage().window().maxi 阅读全文
posted @ 2022-08-12 21:43 寒无衣 阅读(604) 评论(0) 推荐(0) 编辑
摘要:Testng01.java package com.bwf.autotest.day04; import org.junit.Test; public class Testng01 { //这两条用例运行是无序的 //一条测试用例 @Test public void testCase2(){ } / 阅读全文
posted @ 2022-07-10 20:54 寒无衣 阅读(28) 评论(0) 推荐(0) 编辑
摘要:Dome.java 强制等待,隐式等待,显式等待 package com.bwf.autotest.day03; import com.bwf.autotest.day02.Tools; import org.openqa.selenium.By; import org.openqa.seleniu 阅读全文
posted @ 2022-07-08 20:30 寒无衣 阅读(22) 评论(0) 推荐(0) 编辑
摘要:TestLogin.java 测试登录 package com.bwf.autotest.day02; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.fi 阅读全文
posted @ 2022-07-06 21:51 寒无衣 阅读(29) 评论(0) 推荐(0) 编辑
摘要:TestEV.javasetProperty-手工指定浏览器,浏览器驱动安装路径 package com.bwf.autotest.day01; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.Fire 阅读全文
posted @ 2022-07-06 08:29 寒无衣 阅读(22) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示