Class WWW::Impostor::Wwf80
In: lib/www/impostor/wwf80.rb
Parent: WWW::Impostor
Impostor WWW dot/f_3.png

Methods

Public Class methods

After initializing the parent a mechanize agent is created

Additional configuration parameters:

:new_reply_page :new_topic_page

Typical configuration parameters { :type => :wwf80, :app_root => ‘example.com/forum/’, :login_page => ‘login_user.asp’, :new_reply_page => ‘new_reply_form.asp’, :new_topic_page => ‘new_topic_form.asp’, :user_agent => ‘Windows IE 7’, :username => ‘myuser’, :password => ‘mypasswd’ }

Public Instance methods

does the work of logging into WWF 8.0

clean up the state of the library and log out

Get the new reply page for the application (specific to WWF8.0)

Get the new topic page for the application (specific to WWF8.0)

Protected Instance methods

fetches the login page

Checks if the agent is already logged by stored cookie

returns the login form and its button from the login page

does the work of posting the login form

[Validate]