Commit 020b3eeb authored by 马博's avatar 马博

update

parent 20a50fd1
......@@ -31,6 +31,7 @@ public class DuibaBaseUi extends DuibaBase{
public void switchChrome(){
WebDriverRunner.closeWebDriver();
driver= WebDriverFactory.createWebDriver(WebDriverType.CHRMOE, ProxyFactory.createProxy());
// driver.manage().window().maximize();
WebDriverRunner.setWebDriver(driver);
}
......
......@@ -59,6 +59,7 @@ public class 图文导航_Cms_ui extends DuibaBaseUi{
clickByTextEqual("添加跳转链接",0);
inputByContainsAttribut("placeholder","请输入无线链接","input","http://www.baidu.com");
......
......@@ -89,7 +89,12 @@ public class WebDriverFactory {
System.setProperty("webdriver.chrome.driver",driverPath);
//add x
new File(driverPath).setExecutable(true);
browser=new ChromeDriver(capabilities);
ChromeOptions options = new ChromeOptions();
options.addArguments("start-maximized");
// WebDriver driver = new ChromeDriver(options);
browser=new ChromeDriver(options);
break;
case MOBLIE:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment