Code example for WebChromeClient

0
   * @param client the WebChromeClient used by the WebView that WebDriver 
   *     is driving. 
   */ 
  public DefaultChromeClient(WebChromeClient client) {
    if (client == null) {
      delegate = new WebChromeClient();
    } else { 
      delegate = client;
    } 
  } 
 
  public void setDriver(AndroidWebDriver driver) {
    this.wdChromeClient = new WebDriverChromeClient(driver);
  } 
 
  public void setWebDriverView(WebDriverView view) {
    this.wdView = view;
  } 
 
  @Override 
  public void onCloseWindow(WebView window) {