remove setupDriver()
This commit is contained in:
parent
bbb4eaefa7
commit
042487c4e8
@ -28,7 +28,6 @@ public class HelpdeskUITest {
|
||||
|
||||
private String username;
|
||||
private String password;
|
||||
private String webdriver;
|
||||
|
||||
@BeforeClass
|
||||
public void setup() throws IOException {
|
||||
@ -44,9 +43,6 @@ public class HelpdeskUITest {
|
||||
|
||||
username = System.getProperty("user");
|
||||
password = System.getProperty("password");
|
||||
|
||||
setWebdriver(System.getProperty("webdriver.chrome.driver"));
|
||||
System.setProperty("webdriver.chrome.driver", webdriver);
|
||||
}
|
||||
|
||||
@Step("Создать экземпляр драйвера")
|
||||
@ -125,11 +121,4 @@ public class HelpdeskUITest {
|
||||
driver.quit();
|
||||
}
|
||||
}
|
||||
|
||||
public void setWebdriver(String webdriver) {
|
||||
if (webdriver == null || webdriver .isEmpty()) {
|
||||
throw new RuntimeException("В файле \"config.properties\" отсутствует значение \"webdriver.chrome.driver\"");
|
||||
}
|
||||
this.webdriver = webdriver;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user