def page=(value)
      return if @page == value
      @page = value

      if @page.respond_to?("getDocumentElement")
        @object = @page.getDocumentElement || @object
      elsif @page.is_a? HtmlUnit::UnexpectedPage
        raise UnexpectedPageException, @page.getWebResponse.getContentType
      end

      render unless @viewer == DefaultViewer
      run_error_checks

      value
    end
def page=(value)
      return if @page == value
      @page = value

      if @page.respond_to?("getDocumentElement")
        @object = @page.getDocumentElement || @object
      elsif @page.is_a? HtmlUnit::UnexpectedPage
        raise UnexpectedPageException, @page.getWebResponse.getContentType
      end

      render unless @viewer == DefaultViewer
      run_error_checks

      value
    end
Sets the current page object for the browser

 @param [HtmlUnit::HtmlPage] value The page to set.
 @api private