protected void get(URL fullUrl) {
    alert.close();
    alert.setAutoAccept(false);
    try {
      // we can't use webClient.getPage(url) here because selenium has a different idea
      // of the current window and we like to load into to selenium current one
      final WebRequest request = new WebRequest(fullUrl, getBrowserVersion().getHtmlAcceptHeader());
      request.setCharset(StandardCharsets.UTF_8);
      getWebClient().getPage(getCurrentWindow().getTopWindow(), request);

      // A "get" works over the entire page
      currentWindow = getCurrentWindow().getTopWindow();
    } catch (UnknownHostException e) {
      getCurrentWindow().getTopWindow().setEnclosedPage(new UnexpectedPage(
          new StringWebResponse("Unknown host", fullUrl),
          getCurrentWindow().getTopWindow()
          ));
    } catch (ConnectException e) {
      // This might be expected
    } catch (SocketTimeoutException e) {
      throw new TimeoutException(e);
    } catch (NoSuchSessionException e) {
      throw e;
    } catch (SSLHandshakeException e) {
      return;
    } catch (Exception e) {
      throw new WebDriverException(e);
    }

    gotPage = true;
    pickWindow();
    resetKeyboardAndMouseState();
  }
protected void get(URL fullUrl) {
    alert.close();
    alert.setAutoAccept(false);
    try {
      
      
      final WebRequest request = new WebRequest(fullUrl, getBrowserVersion().getHtmlAcceptHeader());
      request.setCharset(StandardCharsets.UTF_8);
      getWebClient().getPage(getCurrentWindow().getTopWindow(), request);

      
      currentWindow = getCurrentWindow().getTopWindow();
    } catch (UnknownHostException e) {
      getCurrentWindow().getTopWindow().setEnclosedPage(new UnexpectedPage(
          new StringWebResponse("Unknown host", fullUrl),
          getCurrentWindow().getTopWindow()
          ));
    } catch (ConnectException e) {
      
    } catch (SocketTimeoutException e) {
      throw new TimeoutException(e);
    } catch (NoSuchSessionException e) {
      throw e;
    } catch (SSLHandshakeException e) {
      return;
    } catch (Exception e) {
      throw new WebDriverException(e);
    }

    gotPage = true;
    pickWindow();
    resetKeyboardAndMouseState();
  }
protected void get ( URL fullUrl ) { alert . close ( ) ; alert . setAutoAccept ( false ) ; try { // we can't use webClient.getPage(url) here because selenium has a different idea // of the current window and we like to load into to selenium current one final WebRequest request = new WebRequest ( fullUrl , getBrowserVersion ( ) . getHtmlAcceptHeader ( ) ) ; request . setCharset ( StandardCharsets . UTF_8 ) ; getWebClient ( ) . getPage ( getCurrentWindow ( ) . getTopWindow ( ) , request ) ; // A "get" works over the entire page currentWindow = getCurrentWindow ( ) . getTopWindow ( ) ; } catch ( UnknownHostException e ) { getCurrentWindow ( ) . getTopWindow ( ) . setEnclosedPage ( new UnexpectedPage ( new StringWebResponse ( "Unknown host" , fullUrl ) , getCurrentWindow ( ) . getTopWindow ( ) ) ) ; } catch ( ConnectException e ) { // This might be expected } catch ( SocketTimeoutException e ) { throw new TimeoutException ( e ) ; } catch ( NoSuchSessionException e ) { throw e ; } catch ( SSLHandshakeException e ) { return ; } catch ( Exception e ) { throw new WebDriverException ( e ) ; } gotPage = true ; pickWindow ( ) ; resetKeyboardAndMouseState ( ) ; }
Allows HtmlUnit's about:blank to be loaded in the constructor, and may be useful for other
tests?

@param fullUrl The URL to visit
Allows HtmlUnit s about : blank to be loaded in the constructor and may be useful for other tests?