File tree Expand file tree Collapse file tree 7 files changed +16
-12
lines changed
main/java/io/appium/java_client/remote
test/java/io/appium/java_client Expand file tree Collapse file tree 7 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -29,23 +29,23 @@ ext {
2929
3030dependencies {
3131 compileOnly ' org.projectlombok:lombok:1.18.24'
32- annotationProcessor ' org.projectlombok:lombok:1.18.22 '
32+ annotationProcessor ' org.projectlombok:lombok:1.18.24 '
3333
3434 api (' org.seleniumhq.selenium:selenium-api' ) {
3535 version {
36- strictly ' [4.0 , 5.0)'
36+ strictly " [ ${ seleniumVersion } , 5.0)"
3737 prefer " ${ seleniumVersion} "
3838 }
3939 }
4040 api (' org.seleniumhq.selenium:selenium-remote-driver' ) {
4141 version {
42- strictly ' [4.0 , 5.0)'
42+ strictly " [ ${ seleniumVersion } , 5.0)"
4343 prefer " ${ seleniumVersion} "
4444 }
4545 }
4646 implementation (' org.seleniumhq.selenium:selenium-support' ) {
4747 version {
48- strictly ' [4.0 , 5.0)'
48+ strictly " [ ${ seleniumVersion } , 5.0)"
4949 prefer " ${ seleniumVersion} "
5050 }
5151 }
@@ -64,7 +64,7 @@ dependencies {
6464 }
6565 testImplementation (' org.seleniumhq.selenium:selenium-chrome-driver' ) {
6666 version {
67- strictly ' [4.0 , 5.0)'
67+ strictly " [ ${ seleniumVersion } , 5.0)"
6868 prefer " ${ seleniumVersion} "
6969 }
7070 }
Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ signing.secretKeyRingFile=PathToYourKeyRingFile
77ossrhUsername =your-jira-id
88ossrhPassword =your-jira-password
99
10- selenium.version =4.1.1
10+ selenium.version =4.2.0
Original file line number Diff line number Diff line change 2020import com .google .common .collect .ImmutableSet ;
2121import org .openqa .selenium .Capabilities ;
2222import org .openqa .selenium .internal .Require ;
23- import org .openqa .selenium .remote . AcceptedW3CCapabilityKeys ;
23+ import org .openqa .selenium .AcceptedW3CCapabilityKeys ;
2424import org .openqa .selenium .remote .CommandPayload ;
2525
2626import java .util .Map ;
Original file line number Diff line number Diff line change 2121import org .openqa .selenium .Platform ;
2222import org .openqa .selenium .WebDriverException ;
2323import org .openqa .selenium .internal .Require ;
24- import org .openqa .selenium .remote . AcceptedW3CCapabilityKeys ;
24+ import org .openqa .selenium .AcceptedW3CCapabilityKeys ;
2525import org .openqa .selenium .remote .CapabilityType ;
2626
2727import javax .annotation .Nullable ;
Original file line number Diff line number Diff line change 2424import org .openqa .selenium .support .ui .ExpectedConditions ;
2525import org .openqa .selenium .support .ui .WebDriverWait ;
2626
27+ import java .time .Duration ;
28+
2729import static org .junit .Assert .assertNotNull ;
2830
2931public class AndroidDataMatcherTest extends BaseEspressoTest {
3032
3133 @ Test
3234 public void testFindByDataMatcher () {
33- final WebDriverWait wait = new WebDriverWait (driver , 10 );
35+ final WebDriverWait wait = new WebDriverWait (driver , Duration . ofSeconds ( 10 ) );
3436 wait .until (ExpectedConditions
3537 .elementToBeClickable (AppiumBy .accessibilityId ("Graphics" )));
3638 driver .findElement (AppiumBy .accessibilityId ("Graphics" )).click ();
Original file line number Diff line number Diff line change 88import org .openqa .selenium .WebElement ;
99import org .openqa .selenium .support .ui .WebDriverWait ;
1010
11+ import java .time .Duration ;
1112import java .util .List ;
1213
1314public class OpenNotificationsTest extends BaseAndroidTest {
1415 @ Test
1516 public void openNotification () {
1617 driver .closeApp ();
1718 driver .openNotifications ();
18- WebDriverWait wait = new WebDriverWait (driver , 20 );
19+ WebDriverWait wait = new WebDriverWait (driver , Duration . ofSeconds ( 20 ) );
1920 assertNotEquals (0 , wait .until (input -> {
2021 List <WebElement > result = input
2122 .findElements (id ("com.android.systemui:id/settings_button" ));
Original file line number Diff line number Diff line change 3030import org .openqa .selenium .WebDriverException ;
3131import org .openqa .selenium .support .ui .WebDriverWait ;
3232
33+ import java .time .Duration ;
3334import java .util .function .Supplier ;
3435
3536@ FixMethodOrder (MethodSorters .NAME_ASCENDING )
3637public class IOSAlertTest extends AppIOSTest {
3738
38- private static final long ALERT_TIMEOUT_SECONDS = 5 ;
39+ private static final Duration ALERT_TIMEOUT = Duration . ofSeconds ( 5 ) ;
3940 private static final int CLICK_RETRIES = 2 ;
4041
41- private final WebDriverWait waiter = new WebDriverWait (driver , ALERT_TIMEOUT_SECONDS );
42+ private final WebDriverWait waiter = new WebDriverWait (driver , ALERT_TIMEOUT );
4243 private static final String iOSAutomationText = "show alert" ;
4344
4445 private void ensureAlertPresence () {
You can’t perform that action at this time.
0 commit comments