helloworld

/**
 * 无参构造函数
 */
public RedmineApp() {
    boolean isMacOS = OSinfo.isMacOS() || OSinfo.isMacOSX();
    if (OSinfo.isWindows()) {
        System.setProperty("webdriver.chrome.driver", "src/main/resources/chromedriver/win32/chromedriver.exe");
    } else if (isMacOS) {
        System.setProperty("webdriver.chrome.driver", "src/main/resources/chromedriver/mac64/chromedriver");
    } else {
        System.setProperty("webdriver.chrome.driver", "src/main/resources/chromedriver/linux64/chromedriver");
    }

    ChromeOptions options = new ChromeOptions();
    webDriver = new ChromeDriver(options);

    autoLoginRedmine = new AutoLoginRedmine(webDriver);
    downloadDesignDepRedmine = new DownloadDesignDepRedmine(webDriver);
}

你可能感兴趣的:(helloworld)