APISonar


io.appium.java_client.remote.MobilePlatform.ANDROID

> io > appium > java_client > remote > MobilePlatform > ANDROID
io APIs appium APIs java_client APIs remote APIs MobilePlatform APIs ANDROID APIs

Example 1
public void whenAndroidBrowserIsLaunched() {
        assertTrue(check(() -> {
            DesiredCapabilities clientCapabilities = commonCapabilitiesSupplier.get();
            clientCapabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, MobilePlatform.ANDROID);
            clientCapabilities.setCapability(MobileCapabilityType.BROWSER_NAME, MobileBrowserType.BROWSER);
            clientCapabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "Android Emulator");
            return clientCapabilities;
        }, (by, aClass) -> {
            driver.get("https://www.google.com");
            return commonPredicate.test(by, aClass);
        }, name("q"), AndroidElement.class));
    }