File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/test/java/io/appium/java_client/pagefactory_tests Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 23
23
import org .junit .Assert ;
24
24
import org .junit .Before ;
25
25
import org .junit .Test ;
26
+ import org .openqa .selenium .By ;
26
27
import org .openqa .selenium .Platform ;
27
28
import org .openqa .selenium .WebDriver ;
28
29
import org .openqa .selenium .WebElement ;
@@ -136,7 +137,16 @@ private long getBenchMark(List<WebElement> stubElements) {
136
137
137
138
checkTimeDifference (5 , TimeUnit .SECONDS , getBenchMark (stubElements2 ));
138
139
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
139
144
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 );
140
150
}
141
151
142
152
}
You can’t perform that action at this time.
0 commit comments