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: 0 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ env:
CHROME_ARGS: "--no-sandbox --headless --disable-dev-shm-usage --disable-gpu --window-size=1920,1080 --remote-allow-origins=*"
FIREFOX_ARGS: "-headless"
ALLURE_VERSION: "2.13.8"
SUREFIRE_ARGS: "--add-opens java.base/java.lang=ALL-UNNAMED"
SUREFIRE_ARGS_BDD: "--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED"

on:
push:
Expand Down
18 changes: 10 additions & 8 deletions jdi-light-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<description>JDI Light Core library</description>

<properties>
<surefire.version>2.21.0</surefire.version>
<aspectj.version>1.9.20</aspectj.version>
<aspectj.maven>1.14.0</aspectj.maven>
<java.version>11</java.version>
Expand All @@ -25,7 +24,7 @@
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>4.34.0</version>
<version>4.35.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand All @@ -37,11 +36,6 @@
<artifactId>commons-io</artifactId>
<version>2.20.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.28.0</version>
</dependency>
<dependency>
<groupId>com.jdiai.tools</groupId>
<artifactId>jdi-light-saber</artifactId>
Expand All @@ -51,6 +45,10 @@
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand All @@ -72,6 +70,10 @@
<groupId>com.github.docker-java</groupId>
<artifactId>docker-java</artifactId>
</exclusion>
<exclusion>
<groupId>com.github.docker-java</groupId>
<artifactId>docker-java-transport-httpclient5</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
Expand All @@ -90,7 +92,7 @@
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<version>2.2</version>
<version>3.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import org.hamcrest.Matchers;
import org.openqa.selenium.DeviceRotation;
import org.openqa.selenium.ScreenOrientation;
import org.openqa.selenium.html5.Location;
import org.testng.annotations.AfterClass;
import org.testng.annotations.Test;

Expand Down Expand Up @@ -40,13 +39,6 @@ public void mobileLockTest() {
MobileDevice.lockDevice(Duration.ofSeconds(2));
}

@Test
public void mobileLocationTest() {
MobileDevice.setLocation(new Location(49, 123, 10));
jdiAssert(MobileDevice.getLocation().getLatitude(), Matchers.is(49.0));
jdiAssert(MobileDevice.getLocation().getLongitude(), Matchers.is(123.0));
}

@Test
public void performanceDataTest() {
logger.info("Performace data types %s", MobileDevice.getPerformanceDataTypes());
Expand Down
2 changes: 1 addition & 1 deletion jdi-light-mobile/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>9.5.0</version>
<version>10.0.0</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import org.openqa.selenium.DeviceRotation;
import org.openqa.selenium.ScreenOrientation;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.html5.Location;

import java.time.Duration;
import java.util.List;
Expand Down Expand Up @@ -99,26 +98,6 @@ public static BatteryInfo getBatteryInfo() {
}
}

public static Location getLocation() {
WebDriver d = getDriver();
if (d instanceof AndroidDriver) {
return executeDriverMethod(AndroidDriver.class, AndroidDriver::location);
} else {
return executeDriverMethod(IOSDriver.class, IOSDriver::location);
}
}

public static void setLocation(Location location) {
WebDriver d = getDriver();
if (d instanceof AndroidDriver) {
executeDriverMethod(AndroidDriver.class,
(AndroidDriver driver) -> driver.setLocation(location));
} else {
executeDriverMethod(IOSDriver.class,
(IOSDriver driver) -> driver.setLocation(location));
}
}

public static String getDeviceTime() {
WebDriver d = getDriver();
if (d instanceof AndroidDriver) {
Expand Down
1 change: 0 additions & 1 deletion jdi-light-selenium3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<description>JDI Light Core library with Selenium3</description>

<properties>
<surefire.version>2.21.0</surefire.version>
<allure.maven>2.10.0</allure.maven>
<aspectj.version>1.9.7</aspectj.version>
<aspectj.maven>1.14.0</aspectj.maven>
Expand Down
Loading