Files | Admin

Notes:

Release Name: mechanize-0.4.3

Notes: = Mechanize Release Notes == 0.4.3 The 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/)


Changes: == 0.4.3 * Added syntactic sugar for finding things * Fixed bug with HttpOnly option in cookies * Fixed a bug with cookie date parsing * Defaulted dropdown lists to the first element * Added unit tests