Skip to content

Commit 90faa5f

Browse files
The additional test was added
#467
1 parent 31ce398 commit 90faa5f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/test/java/io/appium/java_client/pagefactory_tests/TimeOutResetTest.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.junit.Assert;
2424
import org.junit.Before;
2525
import org.junit.Test;
26+
import org.openqa.selenium.By;
2627
import org.openqa.selenium.Platform;
2728
import org.openqa.selenium.WebDriver;
2829
import org.openqa.selenium.WebElement;
@@ -136,7 +137,16 @@ private long getBenchMark(List<WebElement> stubElements) {
136137

137138
checkTimeDifference(5, TimeUnit.SECONDS, getBenchMark(stubElements2));
138139
System.out.println(String.valueOf(5) + " " + TimeUnit.SECONDS.toString() + ": Fine");
140+
}
141+
142+
@Test public void checkThatCustomizedTimeOutDoesNotChangeGeneralValue() {
143+
stubElements2.size(); //time out differs from the general value there
139144

145+
long startMark = Calendar.getInstance().getTimeInMillis();
146+
driver.findElements(By.id("FakeId"));
147+
long endMark = Calendar.getInstance().getTimeInMillis();
148+
checkTimeDifference(AppiumFieldDecorator.DEFAULT_IMPLICITLY_WAIT_TIMEOUT,
149+
AppiumFieldDecorator.DEFAULT_TIMEUNIT, endMark - startMark);
140150
}
141151

142152
}

0 commit comments

Comments
 (0)