1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00
Commit graph

675 commits

Author SHA1 Message Date
Matthew Horan
18651a0caf Release capybara-webkit 1.9.0 2016-03-29 22:04:10 -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
Petteri Räty
e32eb0596d Fix hovering for SVG elements
For SVG elements getClientRects is returning an empty list. This makes
it seem like the webkit engine in my QT is version not at least
respecting the CSSOM spec. Making it use getBoundingClientRect only for
SVG elements ensures backwards compatibility.
2016-03-29 21:53:21 -04:00
Matthew Horan
5a68e1d76b Error for Qt version greater than 5.5
QtWebKit has been removed in Qt 5.6.
2016-03-29 21:38:56 -04:00
Joe Ferris
109f063812
Remove coaching links
We've stopped doing coachng, and the previous links are redirecting to
404 pages.
2016-03-17 10:15:29 -04:00
Joe Ferris
5f08c1e925
Bump to 1.8.0 2016-01-22 09:08:08 -05:00
Thomas Walpole
3d14e2fd33 Remove the lock files from the testing gemfiles 2016-01-21 12:04:10 -08:00
Thomas Walpole
806a9c90f4 Allow Capybara 2.6 - drop 2.4 from travis testing 2016-01-21 11:17:49 -08:00
Lucas Caton
90e372cbf3 Remove GOALS file
capybara-webkit has already version 1.0.0
2016-01-05 10:37:15 -05:00
Thomas Walpole
2c894a5830 Test against Capybara master
Test against the master branch of Capybara to detect upcoming issues,
but allow the branch to fail without making the build go red.
2016-01-04 13:27:53 -05:00
Matthew Horan
e9bd20a184 Bump to 1.7.1 2015-09-23 19:36:37 -04:00
Thomas Walpole
6cf0cac23e fix default_wait_time deprecation 2015-09-23 19:34:14 -04:00
James Wen
5c367d3745 Fix really small typo ('specific') in README.md
Really small typo: 'specific' is spelled wrong twice.
2015-09-17 09:40:57 -04:00
Matthew Horan
6c375e5dbf Bump to 1.7.0 2015-08-29 20:04:32 -04:00
Matthew Horan
2ed3515849 Don't select disabled selects 2015-08-29 19:16:03 -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
Sai To Yeung
d92052fec3 Update UnknownUrlHandler warning to use non-deprecated methods 2015-07-21 21:24:46 -04:00
Joe Ferris
3ef6732baa Bump to 1.6.0 2015-06-26 13:26:27 -04:00
Joe Ferris
459da1f996
Update NEWS 2015-06-26 13:17:39 -04:00
Joe Ferris
519d90306b Introduce API for global configuration
Users were generally confused about where to configure things like
allowed URLs. Because they were reset in between each sessions, they
needed to be applied repeatedly in a before block.

This introduces an API for global configuration, which will be applied
for every session. It also deprecates the per-session configuration
methods, as those are less likely to be useful.
2015-06-26 13:13:23 -04:00
Joe Ferris
bcbcdabd37
Update NEWS 2015-06-26 11:56:23 -04:00
Joe Ferris
8820275188
Attempt to handle crashes
* Restart server process after a command crashes the process
* Inform the user where they can get help
2015-06-05 16:34:04 -04:00
Joe Ferris
9fabb9b73d
Update NEWS 2015-06-05 14:38:21 -04:00
Joe Ferris
79088c2282 Fix reset crash when replies are destroyed
We attempted to track in-progress replies and abort them in 1.5.1.
However, sometimes these replies are destroyed unexpectedly, so
attempting to abort them raises errors.

This commit tracks when replies are destroyed and removes them from the
queue of in-progress replies.
2015-06-05 13:29:26 -04:00
Joe Ferris
179ca5b6da Support Ruby 2.2
This adds Ruby 2.2 to Travis.
2015-05-22 13:51:17 -04:00
Joe Ferris
ec49c2b1dc
Update NEWS 2015-05-22 13:42:49 -04:00
Robert Fletcher
4334dbbf6d Fix for missing select events
This is a fix for an issue where select tags don't bubble the correct
events when clicked. More discussion here:
https://github.com/thoughtbot/capybara-webkit/issues/763
2015-05-22 13:41:01 -04:00
Joe Ferris
f524847616 Deprecate methods on internal classes
We currently expose some functionality through internal classes,
particularly going through `driver.browser`. With this change,
everything except the public Capybara API and a few extensions on our
`Driver` class becomes deprecated.
2015-05-22 11:42:23 -04:00
Joe Ferris
7bedbc050d
Update news 2015-05-15 10:33:00 -04:00
Joe Ferris
aeafb90498 Make caching behavior more like Selenium
We disabled caching entirely, because it sometimes led to unexpected
behavior in tests, and Qt 4.8 didn't behave the same as Qt 5.x.

However, this introduced issues:

* Selenium does perform caching, so capybara-webkit behaved differently
  when switching drivers
* Without any caching, assets were sometimes requested twice for the
  same page

This commit re-enables caching and attempts to improve the way we behave
on cached pages so that testing is less unpredictable. It adds tests to
ensure we continue to behave similarly to Selenium.
2015-05-15 10:32:22 -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
Joe Ferris
30dc567202
Fix news entry 2015-04-27 09:47:11 -04:00
Joe Ferris
c83b5083fe
Update NEWS file 2015-04-24 11:09:13 -04:00
Joe Ferris
f8f2048500 Fix native alerts from Ajax requests
If an Ajax request finished after a `reset` triggered an alert, a native
alert pops up. Additionally, the next request to the driver after the
native alert will crash the webkit process.
2015-04-23 10:15:37 -04:00
nritholtz
e49176beac Allow multiple basic auths in one session 2015-04-13 13:05:30 -04:00
Ryan Winograd
c0c9d701ef Allow response header value to contain a colon
HTTP response header field values are allowed to contain separators
(which includes the colon) as long as they appear within quotes
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2). This
commit enables `Browser#response_headers` to handle a field value that
contains a colon followed by a space (i.e., ": ") without breaking.
2015-04-13 11:38:35 -04:00
Joe Ferris
e8cc0fa382
Warn when using Qt 4
We plan on removing support for Qt 4 in the next major release. This
allows us to give users a heads-up in the next minor release.
2015-04-10 13:28:14 -04:00
nritholtz
8d665b04f4 Fix spec sleep race condition
This spec was randomly failing because it would sometimes take longer
than the fixed, 1-second sleep we had in place. This changes it to wait
up to 3 seconds, without sleeping longer than it needs to.
2015-04-10 13:14:07 -04:00
nritholtz
6e485ca45d Add ability to allow all unknown hosts
Adds `page.driver.allow_unknown_hosts`.
2015-04-10 12:51:57 -04:00
Mike Burns
b5a8fca5db Link to thoughtbot's contributor code of conduct 2015-04-09 16:51:08 -04:00
Matthew Horan
61403a2bfd Release capybara-webkit 1.5.0 2015-03-27 17:18:54 -04:00
Mike Burns
0506f24a0a Include the code that we need
- `cin` and `cout` require iostream.
- `QT_VERSION` requires QtGlobal.
- `QSocketNotifier` requires QSocketNotifier.
- Unrelated to includes: let Qt figure out the spec.

Found by Jeremy Evans on behalf of the OpenBSD project.
2015-03-27 16:17:44 -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
nritholtz
73971d9b7f Bump Selenium Webdriver version in development to support latest Firefox 2015-03-20 18:29:32 -04:00
Joe Ferris
f48cda2d2e Mention coaching 2015-03-12 10:32:34 -04:00
Joe Ferris
cc81747db1 Update links and credits in README
* Link to contributing, license guides
* Update credit section for newer thoughtbot references
2015-03-09 13:00:23 -04:00
Matthew Horan
39c37a67e4 Disable web page and object memory cache
Pages and assets should not be retrieved from the cache. This leads to
unexpected results in testing. Also, the raw content of cached objects
and pages cannot be retrieved.
2015-02-15 20:55:26 -05:00
Matthew Horan
70ffd66213 Release capybara-webkit 1.4.1 2015-01-27 10:44:04 -05:00
Matthew Horan
9868c4630e Do not consider data URIs unknown 2015-01-27 10:44:00 -05:00