APISonar


org.openqa.selenium.testing.drivers.Browser.android

> org > openqa > selenium > testing > drivers > Browser > android
org APIs openqa APIs selenium APIs testing APIs drivers APIs Browser APIs android APIs

Example 1
private String getServingHost() {
    Browser browser = Browser.detect();
    if (browser == Browser.android) {
      return "10.0.2.2";
    }
    if (browser == Browser.android_real_phone) {
      return new NetworkUtils().getIp4NonLoopbackAddressOfThisMachine().getHostName();
    }
    return null;
  }