随笔分类 - Java-Seleniem
摘要://打开浏览器 Webdriver driver = new ChromeDriver(); //设置窗口大小 driver.manage().window().setSize(new Dimension(800,600)) //窗口最大化 driver.manage().window().maxi
阅读全文
摘要:Testng01.java package com.bwf.autotest.day04; import org.junit.Test; public class Testng01 { //这两条用例运行是无序的 //一条测试用例 @Test public void testCase2(){ } /
阅读全文
摘要:Dome.java 强制等待,隐式等待,显式等待 package com.bwf.autotest.day03; import com.bwf.autotest.day02.Tools; import org.openqa.selenium.By; import org.openqa.seleniu
阅读全文
摘要:TestLogin.java 测试登录 package com.bwf.autotest.day02; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.fi
阅读全文
摘要:TestEV.javasetProperty-手工指定浏览器,浏览器驱动安装路径 package com.bwf.autotest.day01; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.Fire
阅读全文