Watir 6.13 is now available on RubyGems. Improved Watir wait syntax, and a few minor fixes.
To install:
or in your Gemfile:
Wait for Element Attribute Values
To wait for an attribute value, you used to need to write:
Now you can do the same thing without a block:
You can use Regular expressions and/or use more than one attribute value:
This can still be mixed and matched with timeout and message values:
Additional Items
-
It used to be that when an element collection was located, the elements would be cached and previously located elements would be tried before re-locating them. In the process of making collections lazy loaded, we broke this feature. There should be a minor performance improvement for anyone making extensive use of collections.
-
Watir now supports custom element tag names with Adjacent locators.
-
Watir now supports
#set
and#clear
on elements with user-editable attribute. This should make some WYSIWYG implementations easier to interact with. -
Improved support for Watigiri
See the Changelog for the complete history of updates.