From ecb3703853748b3a8d1052006cfc60c14a7075da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=BA=D0=B0=D1=82=D0=B5=D1=80=D0=B8=D0=BD=D0=B0?= Date: Sat, 8 Dec 2018 21:30:33 +0000 Subject: [PATCH] Update Context.java --- src/test/java/context/Context.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/java/context/Context.java b/src/test/java/context/Context.java index 928d5dd..e7dc2ea 100644 --- a/src/test/java/context/Context.java +++ b/src/test/java/context/Context.java @@ -1,4 +1,4 @@ -package context; +package ru.oriflame.context; import org.openqa.selenium.WebDriver; @@ -7,6 +7,7 @@ import java.util.concurrent.TimeUnit; public abstract class Context { private final static String DRIVER_LOCATION = "drivers/%s"; protected WebDriver driver; + protected String tmpPath; public WebDriver getDriver() { if (driver != null) { @@ -18,8 +19,8 @@ public abstract class Context { public void start() { System.setProperty(getDriverType(), getDriverExecutablePath()); createDriver(); - // это плохая инструкция для автотестов, т.к. лучше задавать для конкретного элемента или кейса driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); + driver.manage().window().maximize(); } public void close() {