Skip to content

Commit

Permalink
Update Appium test for version 9
Browse files Browse the repository at this point in the history
  • Loading branch information
bonigarcia committed Oct 26, 2023
1 parent 3667ea6 commit e360cba
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.remote.CapabilityType;

import io.appium.java_client.AppiumDriver;
import io.appium.java_client.remote.MobileCapabilityType;
import io.appium.java_client.android.options.EspressoOptions;
import io.github.bonigarcia.seljup.DriverCapabilities;
import io.github.bonigarcia.seljup.EnabledIfDriverUrlOnline;
import io.github.bonigarcia.seljup.SeleniumJupiter;
Expand All @@ -39,10 +40,10 @@ class AppiumTest {

@BeforeEach
void setup() {
options.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android");
options.setCapability(MobileCapabilityType.DEVICE_NAME,
options.setCapability(CapabilityType.PLATFORM_NAME, "Android");
options.setCapability(EspressoOptions.DEVICE_NAME_OPTION,
"Nexus 5 API 30");
options.setCapability(MobileCapabilityType.AUTOMATION_NAME,
options.setCapability(EspressoOptions.AUTOMATION_NAME_OPTION,
"UiAutomator2");
}

Expand Down

0 comments on commit e360cba

Please sign in to comment.