Hi everybody!
A few Watir gems got updated recently. I just wanted to make sure everybody is up to date. :)
- 0.6.3 April 10, 2013 (release notes)
- 3.6.0 March 16, 2013 (release notes)
- 3.5.0 March 10, 2013 (release notes)
Hi everybody!
A few Watir gems got updated recently. I just wanted to make sure everybody is up to date. :)
Hello everyone!
I’m happy to announce that Watir-Classic 3.4.0 has been released!
Put it into your Gemfile:
gem "watir-classic", "~> 3.4.0"
Or install it manually with:
gem install watir-classic
Biggest change is a complete documentation overhaul. Check it out at rubydoc.info/github/watir/watir-classic/frames
Other changes:
Element#flash returns self instead of nil.Frame#attach_command (issue #45).:zero_based_indexing option – from now on all index options are starting from zero.$HIDE_IE – use IE.visible= method instead. Support for command line switch -b is also removed.$FAST_SPEED – use IE.speed= method instead. Support for command line switch -f is also removed.IE#close_all – use browser.windows.each(&:close) instead.IE#close_modal – use browser.modal_dialog.close instead. IE#close_others – use browser.windows.reject(&:current?).each(&:close) instead.ie-new-process.rb.PageContainer module.PageContainer#check_for_http_error.PageContainer#enabled_popup – use browser.modal_dialog instead.
All three Watir gems were updated:
Hello everyone!
I’m happy to announce that Watir-Classic 3.2.0 has been released!
Changes:
Element#browser method as an alias for Element#page_container.SelectList#{select|clear} to fire onChange events for element.Watir::Browser is now a class instead of a module – beware if you’re monkey-patching.As usual:
gem "watir-classic"gem install watir-classic
Hello everyone!
I’m happy to announce that another version of Watir-Classic has just been released – 3.1.0.
Changelog:
Browser#name, which returns :ie.Dl#to_hash.Browser#screenshot API.Browser#execute_script returns now correct Ruby objects instead of String.Browser#new accepts ignored parameter to make API more compatible with Watir-WebDriver.Element#drag_and_drop methods work also with elements not in the viewport.TextField#set slow text entry.show_* methods. Use element collection methods with #each instead. For example browser.links.each {|link| puts link.href}.Watir::Waiter. Use Watir::Wait instead.WinClicker.Browser#(javascript_)dialog. Use Browser#alert API instead.ScreenCapture module. Use Browser#screenshot API instead.Watir.log method, WatirLogger and DefaultLogger classes. Use standard Ruby Logger instead.Watir.until_with_timeout. Use Watir::Wait.until instead.Please try it out by executing:
gem install watir watir-classic
As usual:
Hello everyone!
I’m happy to announce that Watir 3 has been finally released!
Its biggest goal is to conform even better with WatirSpec making it more
compliant with Watir-WebDriver.
Changelog is quite long, but reading it makes your life easier:
* Browser#status returns an empty string if status bar is disabled in IE9
* Browser#style fixed for IE9
* #execute_script evaluates JavaScript code inside of an anonymous function
- use “return” statement if value is needed by Ruby
* #execute_script returns nil instead of ‘undefined’
* drag and drop fixed for IE9
* Window#current? and Window#== are more robust
* all html elements are now supported (even html5 ones)
* CookieManager removed
* cookies API support added (
https://github.com/watir/watirspec/blob/master/cookies_spec.rb)
* drag and drop API support added (
https://github.com/watir/watirspec/blob/master/drag_and_drop_spec.rb)
* Element#(before|after)? removed
* Element#(before|after)_text removed
* Browser#cell(s) and Browser#row(s) removed
* Browser#Element camelCase methods removed, use under_score methods instead
* Browser#element(s) supports only general attributes like :id, :title,
:class_name, :text, :html and such
* Browser#modal_dialog improved
* Browser#send_keys and Element#send_keys have now same syntax as specified
in WatirSpec
* Element#style returns internal styles only for IE9, inline style will be
returned for IE8
* Table#each removed – use Table#(trs|rows).each instead
* Table#row(s) and Table#cell(s) added which ignore inner tables – use
#td/#tr for all.
* raise an Exception if more locators are specified with :xpath/:css
* searching by :xpath and :css code rewritten
* Browser#textarea(s) method for searching elements
* Element#focus works with IE9
* Element#focused? returns the state of focus on that element
* Element#to_subtype returns Element if non-supported tag found instead of
crashing
* searching by :class will match now partially like other tools behave
(e.g. jQuery)
* Button#text returns value if exists instead of text
* Browser#goto prepends url automatically with http:// if scheme is missing
* Browser#element(s)_by_(xpath/css) are now private methods – use
#element(:css => …) and #element(:xpath => …) instead
* Browser#label supports searching by :for attribute
* Browser#options method for searching elements
* Browser#body, #thead, #tfoot, #tbody, #frameset and #fieldset added
* Browser#window and Browser#windows added implementing window switching
API (https://github.com/jarib/watirspec/blob/master/window_switching_spec.rb
)
* Element#present? returns false if exception is thrown by #exists? or
#visible?
* Element#style returns CSS text instead of OLE object
* Element#text returns an empty string for non-visible elements
* Element#parent returns correct instance of Element class (e.g. Div
instead of Element)
* Element#focus focuses document before focusing on the element
* Element#right_click and Element#double_click added
* Element#to_subtype added which returns specific instance of
Watir::Element subclass
* Element#send_keys added
* Element#eql? as an alias for Element#== added
* Element#tag_name added
* ElementCollection#[] method supports negative indexes like regular Arrays
* ElementCollection#[] returns always an object, even if the index is out
of bounds
* FileField#set and Image#save uses correct Windows file path (e.g. convert
“\”-es into “/”-es)
* FileField#set raises Errno::ENOENT instead of WatirException if file
doesn’t exist
* FileField#value= as an alias for FileField#set added
* Font#color, #face and #size added
* Form#submit triggers onSubmit event and doesn’t submit the form if
event’s callback returns false
* Frame#execute_script added
* Image#file_size, #height and #width return integer instead of a string
* Image#save blocking fixed
* Meta#content and #http_equiv added
* Option code rewritten, causing changes in its API
* SelectList code rewritten, causing changes in its API
* SelectList#(selected_)options returns now Options collection instead of
an array of strings
* Table and its subelements code rewritten, causing changes in its API
* Table#strings and #hashes added
* TextField#label added
* searching elements will find only correct types – e.g. using Browser#div
returns only DIV element even if all other provided selectors match
* all selectors and tag of the element needs to match even if searching by
:id
* supporting html5 data-* attributes by using :data_* for locating and
#data_* for retrieving attribute values
* many other internal changes
Please try it out by executing:
gem install watir
watir-webdriver 0.5.2 has been released.
Please note that watir-webdriver 0.5.0 brings some backwards incompatible changes:
Watir::Select#selected_options no longer returns array of strings, but array of Watir::Option objects:class now matches partial class attributes.Additionally, watir-webdriver 0.5.1 removes the following deprecated methods:
element_by_xpath replaced by .element(:xpath, '...')elements_by_xpath replaced by .elements(:xpath, '...')And deprecates the following methods:
Install it with
gem install watir-webdriver
As usual:
watir-webdriver 0.4.1 has been released.
Major changes since the last release:
Install it with
gem install watir-webdriver
As usual:
It is with great pleasure that we announce Taza 0.9.1.1 has been released. We hope you find this release stable, and that you like the small improvements we made. We added support to software we think are the way you should go when it comes to automating tests in Ruby. If you haven’t tried it, I encourage you to give it a shot. In this release, we added:
Among the features we want to improve next are fixtures. I personally find them hard to maintain, and especially in Taza, a little too much on the magic side. We’ve stablished a roadmap regarding those:
We welcome any suggestions to this roadmap, and anything you might find worth telling us.
Also, there is a nice tutorial about using it with rspec and cucumber.
Master branch uses watir. Watir-webdriver branch is there for people not using windows (but it runs on windows, too).
Just run bundle, then bundle exec cucumber and bundle exec rspec spec to run the tests.
There are some failing tests because Etsy changed their website. We haven’t updated the tutorial yet, but I guess fixing it might be a good way of learning it, if you’re interested.
Install it with:
gem install taza
As usual:
Sincerely,
Posted originally at watir-general by Pedro Nascimento. Published here with permission.
watir-webdriver 0.3.9 has been released.
This version has the following changes:
Install it with
gem install watir-webdriver
As usual: