@@ -82,7 +82,7 @@ private static boolean checkTimeDifference(long expectedTime, TimeUnit expectedT
8282 "src/test/java/io/appium/java_client/pagefactory_tests/chromedriver" );
8383 }
8484 driver = new ChromeDriver ();
85- timeOutDuration = new TimeOutDuration (AppiumFieldDecorator .DEFAULT_IMPLICITLY_WAIT_TIMEOUT ,
85+ timeOutDuration = new TimeOutDuration (AppiumFieldDecorator .DEFAULT_TIMEOUT ,
8686 AppiumFieldDecorator .DEFAULT_TIMEUNIT );
8787 PageFactory .initElements (new AppiumFieldDecorator (driver , timeOutDuration ), this );
8888 }
@@ -102,10 +102,10 @@ private long getBenchMark(List<WebElement> stubElements) {
102102 }
103103
104104 @ Test public void test () {
105- assertTrue (checkTimeDifference (AppiumFieldDecorator .DEFAULT_IMPLICITLY_WAIT_TIMEOUT ,
105+ assertTrue (checkTimeDifference (AppiumFieldDecorator .DEFAULT_TIMEOUT ,
106106 AppiumFieldDecorator .DEFAULT_TIMEUNIT , getBenchMark (stubElements )));
107107 System .out .println (
108- String .valueOf (AppiumFieldDecorator .DEFAULT_IMPLICITLY_WAIT_TIMEOUT ) + " "
108+ String .valueOf (AppiumFieldDecorator .DEFAULT_TIMEOUT ) + " "
109109 + AppiumFieldDecorator .DEFAULT_TIMEUNIT .toString () + ": Fine" );
110110
111111 timeOutDuration .setTime (15500000 , TimeUnit .MICROSECONDS );
@@ -122,10 +122,10 @@ private long getBenchMark(List<WebElement> stubElements) {
122122 }
123123
124124 @ Test public void test2 () {
125- assertTrue (checkTimeDifference (AppiumFieldDecorator .DEFAULT_IMPLICITLY_WAIT_TIMEOUT ,
125+ assertTrue (checkTimeDifference (AppiumFieldDecorator .DEFAULT_TIMEOUT ,
126126 AppiumFieldDecorator .DEFAULT_TIMEUNIT , getBenchMark (stubElements )));
127127 System .out .println (
128- String .valueOf (AppiumFieldDecorator .DEFAULT_IMPLICITLY_WAIT_TIMEOUT ) + " "
128+ String .valueOf (AppiumFieldDecorator .DEFAULT_TIMEOUT ) + " "
129129 + AppiumFieldDecorator .DEFAULT_TIMEUNIT .toString () + ": Fine" );
130130
131131 assertTrue (checkTimeDifference (5 , TimeUnit .SECONDS , getBenchMark (stubElements2 )));
@@ -148,7 +148,7 @@ private long getBenchMark(List<WebElement> stubElements) {
148148 long startMark = Calendar .getInstance ().getTimeInMillis ();
149149 driver .findElements (By .id ("FakeId" ));
150150 long endMark = Calendar .getInstance ().getTimeInMillis ();
151- assertTrue (checkTimeDifference (AppiumFieldDecorator .DEFAULT_IMPLICITLY_WAIT_TIMEOUT ,
151+ assertTrue (checkTimeDifference (AppiumFieldDecorator .DEFAULT_TIMEOUT ,
152152 AppiumFieldDecorator .DEFAULT_TIMEUNIT , endMark - startMark ));
153153 }
154154
0 commit comments