Skip to content

Commit

Permalink
add appium prefix to caps
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi-sl committed Jun 13, 2024
1 parent 63dff02 commit b906672
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import org.junit.rules.TestName;
import org.openqa.selenium.By;
import org.openqa.selenium.MutableCapabilities;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;

Expand Down Expand Up @@ -46,8 +45,8 @@ public void setUp() throws MalformedURLException {
MutableCapabilities sauceOptions = new MutableCapabilities();

capabilities.setCapability("platformName", "android");
capabilities.setCapability("deviceName", ".*");
capabilities.setCapability("automationName", "uiautomator2");
capabilities.setCapability("appium:deviceName", ".*");
capabilities.setCapability("appium:automationName", "uiautomator2");

// Sauce capabilities
sauceOptions.setCapability("username", System.getenv("SAUCE_USERNAME"));
Expand Down Expand Up @@ -139,7 +138,6 @@ private void testNetworkConditions() {

wait = new WebDriverWait(driver, Duration.ofSeconds(45));
wait.until(ExpectedConditions.visibilityOfElementLocated(moreInfoButton));
driver.getScreenshotAs(OutputType.BASE64);
}

private URL getAppiumUrl() throws MalformedURLException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void setUp() throws MalformedURLException {
MutableCapabilities sauceOptions = new MutableCapabilities();

capabilities.setCapability("platformName", "ios");
capabilities.setCapability("deviceName", ".*");
capabilities.setCapability("appium:deviceName", ".*");

// Sauce capabilities
sauceOptions.setCapability("username", System.getenv("SAUCE_USERNAME"));
Expand Down

0 comments on commit b906672

Please sign in to comment.