meusx

Untitled

Jan 2nd, 2020
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.97 KB | None | 0 0
  1.     public void initialize() throws IOException {
  2.         PropertiesReader propertiesReader = new PropertiesReader();
  3.         propertiesReader.getProperties();
  4.         propertiesReader.getCommentsFromProperties();
  5.         Log.info("initializing browser");
  6.         DOMConfigurator.configure("log4j.xml");
  7.         SelenideLogger.addListener("AllureSelenide", new AllureSelenide().screenshots(true).savePageSource(true));
  8.         Configuration.browser = "chrome";
  9.         Configuration.headless = false;
  10.         Configuration.browserSize = "1920x1250";
  11.         Configuration.timeout = 15000;
  12.         Configuration.proxyEnabled = true;
  13.         Configuration.fileDownload = PROXY;
  14.         Configuration.startMaximized = false;
  15.         //Configuration.assertionMode = SOFT;
  16.         Configuration.holdBrowserOpen = false;
  17.         Configuration.reportsFolder = "allure-results";
  18.         Selenide.clearBrowserCookies();
  19.         System.setProperty("file.encoding", "UTF-8");
  20.     }
Add Comment
Please, Sign In to add comment