Commit Graph

6 Commits

Author SHA1 Message Date
Joe Ferris e0172bfcd9 Update for Capybara 2.3.0
This adds support for the full Capybara 2.3.0 API. There are two known
incompatibilities:

* Selenium supports outerWidth and outerHeight, which we cannot, because we
  dont' have an actual OS window.
* Selenium raises errors after interacting with a closed window. We focus the
  next available window after closing.

This commit adds the following:

* Implement Driver#close_window
* Implement Driver#current_window_handle
* Implement Driver#maximize_window
* Implement Driver#open_new_window
* Implement Driver#no_such_window_error
* Implement Driver#resize_window_to
* Implement Driver#switch_to_window
* Implement Driver#window_size
* Implement Driver#go_back
* Implement Driver#go_forward
* Support change events when clearing a text input
* Support setting contentEditable elements
* Support window.close() in JavaScript
* Don't return text from hidden elements
* Skip Capybara specs which use outerWidth, outerHeight
* Don't use Qt object ownership to manage windows
2014-07-01 20:36:42 -04:00
Matthew Horan 3bc96bcb19 Resize window spec uses AppRunner 2012-11-30 21:38:56 -05:00
Matthew Horan f0a2d64550 Rename Driver#body to Driver#html 2012-11-30 21:38:56 -05:00
Joe Ferris 259a38f206 Follow new capybara driver naming/module conventions 2012-07-08 12:31:18 -07:00
Tom Lea 1a609a945d Set the window to the default size on #reset!
This should prevent state leakage between test cases.
2012-04-03 18:54:12 -04:00
Tom Lea 04fde02ad7 Add a resize_window method to the driver.
Allow users to resize the webkit viewport via
Capybara::Driver::Webkit#resize_window(width, height).

This can be called before or after page load, and fires resize events as expected.
2012-04-03 18:54:12 -04:00