Skip to content

Commit

Permalink
Update dependency io.appium:java-client to v9 (#295)
Browse files Browse the repository at this point in the history
* Update dependency io.appium:java-client to v9

* Updated deprecated changes with new fixes and improvements

* Use Selenium Server 4.14.1

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ramesh Babu <[email protected]>
  • Loading branch information
renovate[bot] and RameshBabuPrudhvi authored Oct 16, 2023
1 parent 4f71276 commit 95b62a9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<properties>
<cucumber.version>7.14.0</cucumber.version>
<selenium.version>4.14.1</selenium.version>
<appium.version>8.6.0</appium.version>
<appium.version>9.0.0</appium.version>
<testng.version>7.8.0</testng.version>
<junit.version>5.10.0</junit.version>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package io.github.selcukes.core.tests.mobile;

import io.appium.java_client.android.Activity;
import io.appium.java_client.android.AndroidDriver;
import io.github.selcukes.commons.annotation.Lifecycle;
import io.github.selcukes.core.driver.DriverManager;
Expand All @@ -27,6 +26,8 @@
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

import java.util.Map;

import static io.github.selcukes.core.enums.SwipeDirection.DOWN;
import static io.github.selcukes.core.enums.SwipeDirection.UP;
import static java.lang.String.format;
Expand Down Expand Up @@ -75,8 +76,9 @@ public void expandAndScrollElementTest() {

@Test(enabled = false)
public void alertTest() {
((AndroidDriver) DriverManager.getWrappedDriver())
.startActivity(new Activity("io.appium.android.apis", ".app.AlertDialogSamples"));
((AndroidDriver) DriverManager.getWrappedDriver()).executeScript("mobile: startActivity",
Map.of(
"component", String.format("%s/%s", "io.appium.android.apis", ".app.AlertDialogSamples")));

page.click(By.id("io.appium.android.apis:id/two_buttons"))
.click(By.id("android:id/button1"));
Expand All @@ -95,8 +97,9 @@ public void dragAndDrop() {

@Test(enabled = false)
public void searchTest() {
((AndroidDriver) DriverManager.getWrappedDriver())
.startActivity(new Activity("io.appium.android.apis", ".app.SearchInvoke"));
((AndroidDriver) DriverManager.getWrappedDriver()).executeScript("mobile: startActivity",
Map.of(
"component", String.format("%s/%s", "io.appium.android.apis", ".app.SearchInvoke")));
page.enter(By.id("txt_query_prefill"), "Hello world!")
.click(By.id("btn_start_search"));
}
Expand Down
2 changes: 1 addition & 1 deletion selcukes-core/src/test/resources/selcukes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ web:
browser: CHROME
headLess: true
serviceUrl: "http://127.0.0.1:4444"
serverJar: "https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.14.0/selenium-server-4.14.0.jar"
serverJar: "https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.14.0/selenium-server-4.14.1.jar"
windows:
serviceUrl: "http://127.0.0.1:4723"
app: "C:\\Windows\\System32\\notepad.exe"
Expand Down

0 comments on commit 95b62a9

Please sign in to comment.