APISonar


org.openqa.selenium.Platform.ANDROID

> org > openqa > selenium > Platform > ANDROID
org APIs openqa APIs selenium APIs Platform APIs ANDROID APIs

Example 1
private void registerDefaults(Platform current) {
    if (current.equals(Platform.ANDROID)) {
      registerDriver(DesiredCapabilities.android(), "org.openqa.selenium.android.AndroidDriver");
      return;
    }
    for (Map.Entry<Capabilities, String> entry : defaultDrivers.entrySet()) {
      Capabilities caps = entry.getKey();
      if (caps.getPlatform() != null && caps.getPlatform().is(current)) {
        registerDriver(caps, entry.getValue());
      } else if (caps.getPlatform() == null) {
        registerDriver(caps, entry.getValue());
      }
    }
  }