|
@@ -29,12 +29,14 @@ public class BimFaceCheckUtil {
|
|
|
|
|
|
public static String checkIntegral () throws InterruptedException {
|
|
|
BimConfig bimConfig =SpringUtil.getBean(BimConfig.class);
|
|
|
- System.setProperty("webdriver.chrome.driver", bimConfig.getChromeDriver());
|
|
|
+
|
|
|
ChromeOptions options=new ChromeOptions();
|
|
|
options.addArguments("--headless");
|
|
|
options.addArguments("--no-sandbox");
|
|
|
options.addArguments("--disable-gpu");
|
|
|
options.addArguments("--disable-dev-shm-usage"); //初始化一个chrome浏览器实例
|
|
|
+ options.setBinary(bimConfig.getChromeDriver());
|
|
|
+
|
|
|
WebDriver driver = new ChromeDriver(options);
|
|
|
//最大化窗口
|
|
|
// driver.manage().window().maximize();
|