This aids in chainability, eg:

    browser.link(:text => "Click here").flash.click

Instead of having to do something like this:

    browser.link(:text => "Click here").tap(&:flash).click

You can merge this Pull Request by running:

  git pull https://github.com/ewollesen/watirspec master

Or you can view, comment on it, or merge it online at:

  https://github.com/watir/watirspec/pull/38

-- Commit Summary --

  * Spec on #flash, ensuring it returns the element on which it was called.

-- File Changes --

M element_spec.rb (9)

-- Patch Links --

https://github.com/watir/watirspec/pull/38.patch
https://github.com/watir/watirspec/pull/38.diff


---
Reply to this email directly or view it on GitHub:
https://github.com/watir/watirspec/pull/38
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to