def find_table(table_id)
      table_content = @page.search("table##{table_id}").first
      table_content.nil? ? raise(InvalidPage) : HTMLTable.new(table_content)
    end
def find_table(table_id)
      table_content = @page.search("table##{table_id}").first
      table_content.nil? ? raise(InvalidPage) : HTMLTable.new(table_content)
    end
Public: Creates new instance of WebPage class.

 parsed_page - A Mechanize::Page or Nokogiri::HTML::Document object.

 Returns new instance of WebPage class.
 Public: Parses the page for a table with the specified HTML ID.

 table_id - The HTML table ID as a String.

 Examples

   page.find_table('my-table-id')

 Returns an instance of HTMLTable class if a table with the specified ID
   is found on the page.
 Raises InvalidPage if a table with the specified ID is not found.