Skip to content

Commit fd98847

Browse files
committed
Change cleanup order at tests
1 parent 1e203f8 commit fd98847

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

pogen4selenium-api/src/main/java/io/toolisticon/pogen4selenium/runtime/PageObjectParentImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ public WebElement waitForElementToBePresent(By by) {
143143
return wait.until(ExpectedConditions.presenceOfElementLocated(by));
144144

145145
}
146+
146147

147148
public WebElement waitForElementToBePresent(ExpectedCondition<WebElement> expectedCondition) {
148149
Wait<WebDriver> wait =
@@ -156,6 +157,8 @@ public WebElement waitForElementToBePresent(ExpectedCondition<WebElement> expect
156157
}
157158

158159

160+
161+
159162
@Override
160163
public SearchContext getSearchContext() {
161164
return this.driver;

pogen4selenium-example/src/test/java/io/toolisticon/pogen4selenium/example/withoutpagefactory/TestPageTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public void init() throws Exception{
3131

3232
@After
3333
public void cleanup() throws Exception{
34-
webDriver.quit();
3534
jettyServer.stop();
35+
webDriver.quit();
3636
}
3737

3838
@Test

pogen4selenium-example/src/test/java/io/toolisticon/pogen4selenium/example/withpagefactory/TestPageTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public void init() throws Exception{
3131

3232
@After
3333
public void cleanup() throws Exception{
34-
webDriver.quit();
3534
jettyServer.stop();
35+
webDriver.quit();
3636
}
3737

3838
@Test

0 commit comments

Comments
 (0)