Class WWW::Mechanize::Page
In: lib/mechanize/page.rb
Parent: File

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 = WWW::Mechanize.new
 agent.get('http://google.com/').class  #=> WWW::Mechanize::Page

Methods

External Aliases

parser -> root

Attributes

bases  [R] 
forms  [R] 
frames  [R] 
iframes  [R] 
links  [R] 
mech  [RW] 
meta  [R] 
parser  [R] 
title  [R] 
watch_for_set  [R] 
watches  [R] 

Public Class methods

Public Instance methods

Get the content type

Find a form with name. Form will be yeilded if a block is given.

[Validate]