Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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