File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
main/java/io/appium/java_client/pagefactory
test/java/io/appium/java_client/pagefactory_tests Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public List<WebElement> apply(By by) {
8181 automation );
8282 if (field .isAnnotationPresent (WithTimeout .class )){
8383 WithTimeout withTimeout = field .getAnnotation (WithTimeout .class );
84- this .timeOutDuration = new TimeOutDuration (withTimeout .timeout (), withTimeout .timeUnit ());
84+ this .timeOutDuration = new TimeOutDuration (withTimeout .time (), withTimeout .unit ());
8585 }
8686 else
8787 this .timeOutDuration = timeOutDuration ;
Original file line number Diff line number Diff line change 1414 that differs from defined by default
1515 */
1616public @interface WithTimeout {
17- long timeout ();
18- TimeUnit timeUnit ();
17+ long time ();
18+ TimeUnit unit ();
1919}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public class TimeOutResetTest {
2828 @ FindBy (className = "OneAnotherClassWhichDoesNotExist" )})
2929 private List <WebElement > stubElements ;
3030
31- @ WithTimeout (timeout = 5 , timeUnit = TimeUnit .SECONDS )
31+ @ WithTimeout (time = 5 , unit = TimeUnit .SECONDS )
3232 @ FindAll ({@ FindBy (className = "ClassWhichDoesNotExist" ),
3333 @ FindBy (className = "OneAnotherClassWhichDoesNotExist" )})
3434 private List <WebElement > stubElements2 ;
You can’t perform that action at this time.
0 commit comments