[Wtr-development] OperaWatir v0.5 released

Andreas Tolf Tolfsen andreastt at opera.com
Mon Sep 12 05:38:01 EDT 2011


OperaWatir v0.5 was just released!  This is the first stable OperaWatir  
release
in quite some time as you will note from the extensive change log below.

Most of the changes are however Desktop automation-related changes or  
changes
related to upgrading the bundled OperaDriver.

New features for core testing is the CoreUtils interface which will allow  
you
to query various meta information about the browser:

   * browser.utils.core_version  Bundled core version
   * browser.utils.os            Operating system
   * browser.utils.product       Kind of Opera product (core-gogi or  
desktop)
   * browser.utils.binary_path   The full path to Opera
   * browser.utils.user_agent    The User-Agent string
   * browser.utils.pid           Process ID if available on platform

It is now also possible to enable more extensive debug output from  
OperaDriver
using the --debug and --log switches to the operawatir binary:

   --debug=LEVEL, where LEVEL can be one of SEVERE (highest), WARNING, INFO,
   CONFIG, FINE, FINER, FINEST (lowest), ALL.  The default is INFO.

   --log=FILE for specifying sending the logging output to a file

You will find the full change log for OperaDriver here:

   <URI:https://github.com/operasoftware/operadriver/blob/v0.7.2/CHANGES.markdown>

OperaWatir v0.5 will be deployed on SPARTAN shortly, so I would highly  
suggest
upgrading soon.

If you're installing on a native package installation of JRuby:

   % jruby -S gem install operawatir

If you're on GNU/Linux you also need to expose the JRuby gem bin/  
directory on
your PATH.

If you're installing using rvm:

   % rvm use jruby
   % gem install operawatir

If you're using rvm, it will figure out the PATH settings for you.

When you are subject to any bugs with OperaWatir, please report them here:

   <URI:https://github.com/operasoftware/operawatir/issues>

(Or on the WTR project in the bug tracker if you work at Opera.)

As always, we're available in the #watir channel on IRC if you have any  
questions.


The full change log:

v0.5         2011-09-12

   [OTHER]

   * Pushed final version 0.5.  (andreastt)

v0.5.pre3    2011-09-09

   [BUG FIXES]

   * Calling #to_s on opts, fixes `desktopwatir --help`.  (andreastt)

   * Removing redundant -autotestmode argument sent by
     OperaWatir::DesktopBrowser.  (andreastt)

   [OTHER]

   * Upgraded to OperaDriver v0.7.2.  This will fix issues with getting  
location
     of elements in SVG documents, among other fixes.  (andreastt)

   * Upgraded to latest head of selenium-client-nodeps.  (andreatt)

v0.5.pre2    2011-09-06

   [NEW FEATURES]

   * Added browser utility service as Browser#utils, implementing the  
following
     new method calls:

       Utils#core_version, returning the core version
       Utils#os, returning the browser's OS
       Utils#product, returning product type (desktop/core/mobile)
       Utils#binary_path, returning full path to Opera binary
       Utils#user_agent, returning User-Agent string
       Utils#pid, returning the browser's PID if available

     (andreastt)

   * Implementing ability to enable verbose logging in operawatir.  Added
     following new command-line switches to the operawatir binary:

       --debug=LEVEL (or -d for short), for specifying logging level
       --log=FILE, for specifying sending the logging to a file

     Available logging levels are: SEVERE (highest), WARNING, INFO, CONFIG,
     FINE, FINER, FINEST (lowest), ALL.  Default is INFO.  See `operawatir
     --help` for more information.

     (andreastt)

   [ENHANCEMENTS]

   * Now using DesiredCapabilities from OperaDriver v0.7 instead of
     OperaDriverSettings.  (andreastt)

   [BUG FIXES]

   * initMouseEvent in Element#fire_event is now clicking clientX and  
clientY
     instead of relying on internal driver locators.  (andreastt)

   * Compat::Window#show_frames now returns a string instead of writing to
     STDOUT.  (andreastt)

   * Browser#quit was calling OperaDriver.shutdown() which is now  
deprecated.
     Fixed by now calling OperaDriver.quit() instead.  (andreastt)

   * `operawatir --help` was broken, fixed by converting OptionParse object  
to a
     String.  (andreastt)

   [OTHER]

   * Upgraded to OperaDriver v0.7.1.  (andreastt)

   * Added tests for new Utils interface.  (andreastt)

v0.5.pre1    2011-08-31

   [API CHANGES]

   * Implemented advanced user interaction API in Watir by adding a new  
Actions
     class.  This is accessible through Browser#actions.  (stuartk)

   * Removed Browser#close_all since this is no longer supported in  
WebDriver.
     The alternative approach is to get all windows, then cycle through  
them to
     close them.  (andreastt)

   * Added following method calls related to performing context menu clicks:

       DesktopBrowser#action_with_condition
       DesktopBrowser#active_quick_window_id
       DesktopBrowser#close_active_menu
       DesktopBrowser#close_all_menus
       DesktopBrowser#close_menu
       DesktopBrowser#close_menu_with_key_press
       DesktopBrowser#key_press_with_condition
       DesktopBrowser#open_menu_with_key_press
       DesktopBrowser#open_menu_with_rightclick
       DesktopBrowser#quick_menuitems
       DesktopBrowser#quick_menus
       DesktopBrowser#quick_tabs
       DesktopBrowser::ConditionTimeout
       DesktopContainer#quick_dropdownitem
       DesktopContainer#quick_menu
       DesktopContainer#quick_menuitem
       QuickMenu (...)
       QuickMenuItem (...)

     (karie)

   * Added following utility methods:

       DesktopBrowser#desktop?
       DesktopHelper#linux?
       DesktopHelper#mac?
       DesktopCommon#linux_internal?
       DesktopCommon#mac_internal?
       DesktopCommon#wait_for_menu_closed
       DesktopCommon#wait_for_menu_shown
       DesktopCommon#wait_for_widget_visible
       DesktopCommon#widgets

     (karie)

   * Added QuickButton#wait_for_visible to wait for a button to become  
visible.
    (karie)

   * Added following APIs related to QuickDropdown's:

       QuickDropdown#dropped_down?
       QuickDropdown#open_with_click
       QuickDropdownItem (...)

   * Added QuickTab#close_window_with_doubleclick.  (karie)

   * Added following APIs related to QuickTreeItem:

       QuickTreeItem#open_dialog_with_click
       QuickTreeItem#open_window_with_click

     (karie)

   * Added following APIs related to widgets:

       QuickWidget#click_with_condition
       QuickWidget#click_with_condition_internal
       QuickWidget#double_click_with_condition
       QuickWidget#focus_with_hover
       QuickWidget#middle_click_with_condition
       QuickWidget#open_menu_with_rightclick
       QuickWidget#open_window_with_click_internal
       QuickWidget#quick_tabs
       QuickWidget#quick_widgets
       QuickWidget#right_click_with_condition
       QuickWidget#verify_realtext
       QuickWidget::ConditionTimeout

     (karie)

   * Added following APIs related to QuickWindow:

       QuickWindow#active?
       QuickWindow#quick_widgets

     (karie)

   * Removed DesktopBrowser#open_dialog_with_click.  (karie)

   * Removed DesktopBrowser#key_down.  (karie)

   * Removed DesktopBrowser#key_up.  (karie)

   * Removed Preferences::Entry (...) and Preferences::SECTIONS; replaced by
     Preferences::Section and Preferences::Section::Key.  (andreastt)

   * Removed QuickButton#load_page_with_click.  (karie)

   * Removed QuickButton#open_dialog_with_click.  (karie)

   * Removed QuickButton#open_window_with_click.  (karie)

   * Exposed WebElement.middleClick() from WebDriver as  
Element#middle_click.
     (andreastt)

   * Renamed #key_down, and #key_up in desktop_browser to avoid clash with  
clash
     with browser#key_down and up.  Fixes failures of operawatir/core spec  
tests.
     New APIs:

        DesktopCommon#key_down_direct
        DesktopCommon#key_up_direct

     (karie)

   [NEW FEATURES]

   * Access to widgets in Desktop.  (karie/adamm)

   * Context menus in Desktop.  (karie/adamm)

   [BUG FIXES]

   * Fix for bug DSK-341584 concerning a regression in quick_treeitem where  
it
     complained about wrong number of arguments.  (karie)

   * profile-autotest folder was not deleted in running any spec test with  
no
     arguments, fixes DSK-333674.  (karie)

   * Add separator to #QuickMenuItem#to_s method.  (adamm)

   * Fixes to make Mac work with menus and multiple windows.  (adamm)

   * treeitem open window with click, fixes bug DSK-341539.  (karie)

   [OTHER]

   * Added more desktop-related tests.  (karie)

   * Added preliminary tests for keys implementation in key_spec.rb.
     (andreastt)

   * Fixes to make core tests run.  (andreastt)

   * Fixes to make desktop tests run.  (mariap)

v0.4.3.pre2  2011-05-25

   [BUG FIXES]

   * Element#click and Compat::Element#click now defaults to
     coordinates [1,1], fixing WTR-354.  (andreastt)

v0.4.3.pre1  2011-05-24

   [OTHER]

   * Using pessimistic operator to determine rspec version between 2.6.0
     and 2.7.0.  rspec v2.6.0 should now be fixed for JRuby.  (andreastt)


More information about the Wtr-development mailing list