io.selendroid.server.model
Class SelendroidWebDriver.SelendroidWebChromeClient

java.lang.Object
  extended by android.webkit.WebChromeClient
      extended by io.selendroid.server.model.SelendroidWebDriver.SelendroidWebChromeClient
Enclosing class:
SelendroidWebDriver

public class SelendroidWebDriver.SelendroidWebChromeClient
extends android.webkit.WebChromeClient


Nested Class Summary
 
Nested classes/interfaces inherited from class android.webkit.WebChromeClient
android.webkit.WebChromeClient.CustomViewCallback
 
Constructor Summary
SelendroidWebDriver.SelendroidWebChromeClient()
           
 
Method Summary
 boolean onJsAlert(android.webkit.WebView view, String url, String message, android.webkit.JsResult jsResult)
          Unconventional way of adding a Javascript interface but the main reason why I took this way is that it is working stable compared to the webview.addJavascriptInterface way.
 boolean onJsConfirm(android.webkit.WebView view, String url, String message, android.webkit.JsResult result)
           
 boolean onJsPrompt(android.webkit.WebView view, String url, String message, String defaultValue, android.webkit.JsPromptResult result)
           
 
Methods inherited from class android.webkit.WebChromeClient
getDefaultVideoPoster, getVideoLoadingProgressView, getVisitedHistory, onCloseWindow, onConsoleMessage, onConsoleMessage, onCreateWindow, onExceededDatabaseQuota, onGeolocationPermissionsHidePrompt, onGeolocationPermissionsShowPrompt, onHideCustomView, onJsBeforeUnload, onJsTimeout, onProgressChanged, onReachedMaxAppCacheSize, onReceivedIcon, onReceivedTitle, onReceivedTouchIconUrl, onRequestFocus, onShowCustomView, onShowCustomView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelendroidWebDriver.SelendroidWebChromeClient

public SelendroidWebDriver.SelendroidWebChromeClient()
Method Detail

onJsAlert

public boolean onJsAlert(android.webkit.WebView view,
                         String url,
                         String message,
                         android.webkit.JsResult jsResult)
Unconventional way of adding a Javascript interface but the main reason why I took this way is that it is working stable compared to the webview.addJavascriptInterface way.

Overrides:
onJsAlert in class android.webkit.WebChromeClient

onJsConfirm

public boolean onJsConfirm(android.webkit.WebView view,
                           String url,
                           String message,
                           android.webkit.JsResult result)
Overrides:
onJsConfirm in class android.webkit.WebChromeClient

onJsPrompt

public boolean onJsPrompt(android.webkit.WebView view,
                          String url,
                          String message,
                          String defaultValue,
                          android.webkit.JsPromptResult result)
Overrides:
onJsPrompt in class android.webkit.WebChromeClient


Copyright © 2014. All rights reserved.