File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/test/java/io/appium/java_client/pagefactory_tests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2323import static java .lang .System .currentTimeMillis ;
2424import static java .lang .System .setProperty ;
2525import static java .time .Duration .ofSeconds ;
26- import static java .util . concurrent . TimeUnit .SECONDS ;
26+ import static java .time . temporal . ChronoUnit .SECONDS ;
2727import static org .apache .commons .lang3 .time .DurationFormatUtils .formatDuration ;
2828import static org .hamcrest .Matchers .lessThanOrEqualTo ;
2929import static org .junit .Assert .assertThat ;
@@ -55,7 +55,7 @@ public class TimeoutTest {
5555 @ FindBy (className = "OneAnotherClassWhichDoesNotExist" )})
5656 private List <WebElement > stubElements ;
5757
58- @ WithTimeout (time = 5 , unit = SECONDS )
58+ @ WithTimeout (time = 5 , chronoUnit = SECONDS )
5959 @ FindAll ({@ FindBy (className = "ClassWhichDoesNotExist" ),
6060 @ FindBy (className = "OneAnotherClassWhichDoesNotExist" )})
6161 private List <WebElement > stubElements2 ;
You can’t perform that action at this time.
0 commit comments