Commit Graph

34 Commits

Author SHA1 Message Date
Thomas Walpole 9082b84019 No support for fullscreen mode 2018-07-09 16:26:26 -07:00
Thomas Walpole 1e0e932e10 Supported QtWebkit doesn't handle 308 HTTP status code 2018-06-08 12:51:49 -07:00
Thomas Walpole 02f9c64c2a Selecting from a datalist test is expected to fail since Qt version doesn't support datalist - exclude 2018-05-01 14:44:55 -07:00
Thomas Walpole e0e9854145 Add Capybara evaluate_async_script support 2017-11-01 09:45:49 -07:00
Thomas Walpole b6fdc65bf1 Support most of the keys specified by Capybara for Node#send_keys 2017-03-25 14:29:44 -04:00
Thomas Walpole ed295f25bd Update to modern RSpec 2017-02-06 10:56:58 -08:00
Joe Ferris 753348ecb4 Extract class for booting the server
The Connection class is fairly large and combines the responsibilities
of booting the server and connecting to it.

This extracts a class to encapsulate booting a server. It also provides
a hook for injecting your own server.
2016-04-07 13:10:20 -04:00
Max Nordlund c226439827 Add basic send_keys implementation
This only supports simple strings, and arrays of simple strings. No
modifiers and _very_ limited symbol support (:enter and :space).
2016-03-29 22:02:49 -04:00
Matthew Horan 44c361909c Let Capybara test suite manage screenshot location 2015-08-29 19:15:20 -04:00
Matthew Horan cb7420d792 Bump runtime dependencies for Capybara 2.5
We're not completely compatible with the release, as Node#send_keys
implementation is missing. However, we're going to release this so that
people can get started with Capybara 2.5 today.
2015-08-29 19:13:49 -04:00
Joe Ferris af06f696e1 Remove SocketDebugger and deprecate socket_class
Because:

* SocketDebugger is less useful than debug logging in the driver
* SocketDebugger has been broken for several releases and is unused
* The socket_class option was only used for injecting SocketDebugger

This commit:

* Removes the SocketDebugger class
* Deprecates the socket_class option
2015-04-28 10:13:08 -04:00
nritholtz e49176beac Allow multiple basic auths in one session 2015-04-13 13:05:30 -04:00
nritholtz 079e6cbca1 Add flag for specs that should be skipped if currently not connected to the internet 2015-03-27 16:16:08 -04:00
Matthew Horan bbcfb7ea4b Don't interact with readonly elements
* This behavior changed in Capybara 2.4.
* Previously we would focus and send keypress events to readonly
  elements. Now readonly elements are ignored, and a warning is emitted
  by Capybara.
2014-07-13 19:19:01 -04:00
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 2b417defb8 Skip forking spec on JRuby
* JRuby doesn't support `fork`, so this test is irrelevant.
2014-01-28 19:17:16 -05:00
Matthew Horan 15bb56012e Capybara spec_helper is in capybara/spec 2013-02-17 11:19:38 -05:00
Matthew Horan 59ca3c9789 Bump Capybara dependency to 2.0.2
Required for Capybara::SpecHelper.configure.
2013-01-03 14:03:16 -05:00
Matthew Horan 615698037e Reset Capybara.app_host after each spec
Workaround for Capybara integration specs which fail to do the same.
2012-11-30 22:12:11 -05:00
Matthew Horan 8650fe1ff3 Don't reset the browser unnecessarily
The Capybara spec_helper already resets the browser after each spec, so
we only need to reset after using the driver via AppRunner.
2012-11-30 22:12:03 -05:00
Matthew Horan 2ceab4e525 Forward stderr via Open3#popen3
Forwarding stderr via 2>&1 causes an additional child process to be
spawned.  Killing that process does not kill webkit_server.

JavaScipt console messages and alerts are now written to the logger
instead of directly to stdout.
2012-11-30 21:38:56 -05:00
Joe Ferris 327ae85e86 Use sinatra for test apps 2012-07-08 16:09:40 -07:00
Joe Ferris 265a7da652 Improve pattern of testing driver against a rack app 2012-07-08 13:38:19 -07:00
Joe Ferris 259a38f206 Follow new capybara driver naming/module conventions 2012-07-08 12:31:18 -07:00
Joe Ferris 665e0fc729 Extract a Connection class for booting the server 2012-05-04 16:00:25 -04:00
Moreno Carullo f09ba15637 Support compiling on windows. 2012-03-16 11:59:50 -04:00
Igor Zubkov 9eb8e55759 Fix capybara_webkit_builder specs 2012-02-17 11:27:00 -05:00
Matthew Mongeau 4a6b766b18 Allow ENV to change make, qmake, and spec options. 2012-02-17 11:27:00 -05:00
Hongli Lai (Phusion) dc49e5f875 Forward webkit_server's stdout to Ruby's stdout.
This allows console.log() messages to be visible, and prevents
large numbers of console.log() calls from filling up webkit_server's pipe
which would block the process.
2011-08-15 19:04:40 +02:00
Joe Ferris 40804c06ba Wait and timeout when looking for content 2011-04-14 10:16:56 -04:00
Joe Ferris e28cc06cab Fixed multiple browsers starting because before(:all) runs multiple times; fixed separate app servers starting for each example; added injectable class for debugging wire protocol 2011-03-11 11:19:59 -05:00
Joe Ferris 9e27f7d6f4 Initial gem 2011-02-26 18:29:01 -05:00
Joe Ferris 7451010c18 Added commented out integration specs 2011-02-26 17:02:00 -05:00
Joe Ferris 0745b1ee1c Initial commit 2011-02-24 23:13:11 -05:00