Posted By: Aaron Patterson
Date: 2006-04-26 13:15
Summary: WWW::Mechanize 0.4.3
Project: Mechanize

WWW::Mechanize 0.4.3 is now available.

This version features some new syntax:

New syntax for finding things like forms, fields, frames, etcetera looks
like this:

page.links.with.text 'Some Text'

The preceding statement will find all links in a page with the text
'Some Text'. This can be applied to form fields as well:

form.fields.with.name 'email'

These can be chained as well like this:

form.fields.with.name('email').and.with.value('blah@domain.com')

'with' and 'and' can be omitted, and the old way is still supported. The
following statements all do the same thing:

form.fields.find_all { |f| f.name == 'email' }
form.fields.with.name('email')
form.fields.name('email')
form.fields(:name => 'email')

Regular expressions are also supported:

form.fields.with.name(/email/)

Other highlights include:

* Fixed bug with HttpOnly option in cookies
* Fixed a bug with cookie date parsing
* Defaulted dropdown lists to the first element
* Added unit tests

Latest News
Version 1.6.0 of Mxx_ru released
    Nicolay Shmakov - 2013-06-19 12:07
TZInfo v1.0.0 and TZInfo::Data v1.2013.3 Released
    Philip Ross - 2013-06-02 17:12
icalendar 1.4.0 Released
    Ryan Ahearn - 2013-05-21 23:17
BinData 1.5.0 - source moved to github
    Dion Mendel - 2013-05-21 11:10
v13.5.0 Released !!
    id 774 - 2013-05-18 12:28

 

Forums | Admin

Discussion Forums: www--mechanize-0.4.3

Start New Thread Start New Thread

 

Topic Topic Starter Replies Last Post