Start for free Deutsch Log in Register
Please try again later or contact us. Thank you very much!

Subscribe to the newsletter to be informed about important technical updates to the Mobile Device Cloud.

* mandatory information

Save

Mobile app testing & automation with Selenium

The use of the following test frameworks and test tools has been evaluated and tested. Other common frameworks and test tools are under evaluation. If you have any questions about using your preferred test tools, please feel free to contact us.

Appium Appium + Jetpack Compose XCUITest Espresso TestCafe Tosca Selenium Testerra

Test your web applications automatically on all available browsers in the Mobile Device Cloud.

Selenium was created for automated Softwaretests of Web Applications. The Mobile Device Cloud supports the Selenium 3 and Selenium 4 Framework.

Several Selenium API compatible programming languages are available for developing your tests (Java, Ruby Phyton and Node).

Read more about Selenium on ??usage.app.selenium.subsite.link.text_en??

import org.openqa.selenium.*;
import org.openqa.selenium.remote.CapabilityType;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.junit.jupiter.api.*;
import java.net.URL;
import java.time.Duration;

public class ExampleTest {

    private static final String ACCESS_KEY = "YOUR_ACCESS_KEY_TO_THE_MOBILE_DEVICE_CLOUD";
    private RemoteWebDriver driver;
    private DesiredCapabilities dc = new DesiredCapabilities();
    private final String TEST_NAME = "Selenium Quick Start Browser MDC-Demo";

    @BeforeEach
    public void setUp() throws Exception {
        dc.setCapability("experitest:Call MMS Mobile Device Cloud", TEST_NAME);
        dc.setCapability("experitest:accessKey", ACCESS_KEY);
        dc.setCapability("experitest:testName", TEST_NAME);
        driver = new RemoteWebDriver(new URL("https://mobiledevicecloud.t-systems-mms.eu/wd/hub"), dc);
        dc.setCapability(CapabilityType.BROWSER_NAME, "safari");
    }

    @Test
    public void browserMDCTest() throws InterruptedException {
        driver.get("https://mobiledevice.cloud/");
        new WebDriverWait(driver, Duration.ofSeconds(15)).until(ExpectedConditions.presenceOfElementLocated(By.id("devicecloud-layer-title")));
        WebElement acceptCookie = driver.findElement(By.id("consentAcceptAll"));
        acceptCookie.click();

    }

    @AfterEach
    public void tearDown() {
        System.out.println("Report URL: "+ driver.getCapabilities().getCapability("reportUrl"));
        driver.quit();
    }
}

First steps with Selenium

1.

Contact us

2.

Write Test

3.

Start Test

1. Contact us

Book a package, create a free trial account or contact us, to get access to the Mobile Device Cloud.

2. Write Test

Write your Selenium test in your familiar programming language (The test "ExampleTest" was written in Java and TestNG for illustration).

3. Start Test

Start your Selenium-Test.

You can view your test results in the reporting area of the Mobile Device Cloud.