|
@@ -30,13 +30,15 @@ public class BimFaceCheckUtil {
|
|
|
|
|
|
public static String checkIntegral () throws InterruptedException {
|
|
|
BimConfig bimConfig =SpringUtil.getBean(BimConfig.class);
|
|
|
+ log.info("webdriver.chrome.driver", bimConfig.getChromeDriver());
|
|
|
+ log.info("webdriver.chrome.bin", bimConfig.getChromeBin());
|
|
|
System.setProperty("webdriver.chrome.driver", bimConfig.getChromeDriver());
|
|
|
+ System.setProperty("webdriver.chrome.bin", bimConfig.getChromeBin());
|
|
|
ChromeOptions options=new ChromeOptions();
|
|
|
options.addArguments("--headless");
|
|
|
options.addArguments("--no-sandbox");
|
|
|
options.addArguments("--disable-gpu");
|
|
|
options.addArguments("--disable-dev-shm-usage");
|
|
|
- options.setBinary(bimConfig.getChromeDriver());
|
|
|
WebDriver driver = new ChromeDriver(options);
|
|
|
//最大化窗口
|
|
|
// driver.manage().window().maximize();
|