APISonar


org.openqa.selenium.android.Logger.log

> org > openqa > selenium > android > Logger > log
org APIs openqa APIs selenium APIs android APIs Logger APIs log APIs

Example 1
public void stop(String description) {
    end = System.currentTimeMillis();
    isRunning = false;
    Logger.log(Log.DEBUG, LOG_TAG,
        String.format("%s: %d milliseconds.", description, getElapsedTimeInMillis()));
  }
Example 2
public void onReceivedError(WebView view, int errorCode, String description,
      String failingUrl) {
    Logger.log(Log.DEBUG, LOG_TAG, "onReceiveError: " + description
        + ", error code: " + errorCode);
  }
Example 3
public void onReceive(Context context, Intent intent) {
    received = true;
    toReturn = getResultExtras(true).get(action);
    Logger.log(Log.DEBUG, LOG_TAG,
        String.format("Received intent: %s, from context: %s, with data: %s. ",
            intent.getAction(), context, (toReturn == null ? "null" : toReturn.toString())));
  }
Example 4
public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
    DesiredCapabilities caps = MainActivity.getDesiredCapabilities();
    Object cap = caps.getCapability(CapabilityType.ACCEPT_SSL_CERTS);
    boolean shouldAcceptSslCerts = (cap == null ? false : (Boolean) cap);
    Logger.log(Log.DEBUG, LOG_TAG, "onReceivedSslError: " + error.toString()
        + ", shouldAcceptSslCerts: " + shouldAcceptSslCerts);

    if (shouldAcceptSslCerts) {
      handler.proceed();
    } else {
      super.onReceivedSslError(view, handler, error);
    }
  }