Code example for WebView

Methods: getSettingssetWebChromeClient

0
 
			if(webView != null){ 
 
				inst.runOnMainSync(new Runnable() {
					public void run() { 
						webView.getSettings().setJavaScriptEnabled(true);
						webView.setWebChromeClient(robotiumWebClient);
 
					} 
				}); 
			} 
		} 
	} 
 
	/** 
	 * Overrides onJsPrompt in order to create {@code WebElement} objects based on the web elements attributes prompted by the injections of JavaScript 
	 */ 
 
	@Override 
	public boolean onJsPrompt(WebView view, String url, String message,	String defaultValue, JsPromptResult r) {