Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void initialize() throws IOException {
- PropertiesReader propertiesReader = new PropertiesReader();
- propertiesReader.getProperties();
- propertiesReader.getCommentsFromProperties();
- Log.info("initializing browser");
- DOMConfigurator.configure("log4j.xml");
- SelenideLogger.addListener("AllureSelenide", new AllureSelenide().screenshots(true).savePageSource(true));
- Configuration.browser = "chrome";
- Configuration.headless = false;
- Configuration.browserSize = "1920x1250";
- Configuration.timeout = 15000;
- Configuration.proxyEnabled = true;
- Configuration.fileDownload = PROXY;
- Configuration.startMaximized = false;
- //Configuration.assertionMode = SOFT;
- Configuration.holdBrowserOpen = false;
- Configuration.reportsFolder = "allure-results";
- Selenide.clearBrowserCookies();
- System.setProperty("file.encoding", "UTF-8");
- }
Add Comment
Please, Sign In to add comment