Class Mechanize::Page
In: lib/mechanize/monkey_patch.rb
lib/mechanize/page.rb
lib/mechanize/page/base.rb
lib/mechanize/page/frame.rb
lib/mechanize/page/image.rb
lib/mechanize/page/meta.rb
lib/mechanize/page/label.rb
lib/mechanize/page/link.rb
Parent: Object

Synopsis

This class encapsulates an HTML page. If Mechanize finds a content type of ‘text/html’, this class will be instantiated and returned.

Example

 require 'rubygems'
 require 'mechanize'

 agent = Mechanize.new
 agent.get('http://google.com/').class  #=> Mechanize::Page

Methods

bases   content_type   encoding   encoding=   forms   frames   iframes   image_urls   images   labels   labels_hash   links   meta   new   parser   root   title  

Classes and Modules

Class Mechanize::Page::Base
Class Mechanize::Page::Frame
Class Mechanize::Page::Image
Class Mechanize::Page::Label
Class Mechanize::Page::Link
Class Mechanize::Page::Meta

External Aliases

pretty_inspect -> inspect

Attributes

mech  [RW] 

Public Class methods

Public Instance methods

Return a list of all base tags

Get the content type

Return a list of all form tags

Return a list of all frame tags

Return a list of all iframe tags

Return a list of all img tags

Return a list of all label tags

Return a list of all link and area tags

Return a list of all meta tags

root()

Alias for parser

[Validate]