Matthew Horan
64762b6fad
Delete pending commands on reset
...
* If an exception is raised in the Ruby process, it's possible for Reset
to be sent to the server while the previous command is still running.
This ensures that pending commands are stopped when handling Reset.
2014-07-17 09:39:26 -04:00
Matthew Horan
7289a8e77a
Disconnect signals from TimeoutCommand after fired
2012-10-25 23:51:57 -04:00
Matthew Horan
67b8a3391a
Remove m_commandWaiting and add logging to TimeoutCommand
2012-10-24 08:15:37 -04:00
Matthew Horan
cbb58d05f1
Revert "Revert "Add configurable timeouts to commands.""
...
This reverts commit b1b3a4c390
.
2012-10-24 07:55:29 -04:00
Matthew Horan
b1b3a4c390
Revert "Add configurable timeouts to commands."
...
This reverts commit da93136a9c
.
Conflicts:
src/TimeoutCommand.cpp
2012-10-23 23:24:42 -04:00
Sean Geoghegan
da93136a9c
Add configurable timeouts to commands.
...
Timeouts can be set using browser.timeout = <seconds>.
When a command or page load takes longer the specified
timeout a Capybara::TimeoutError will be raised. Calls
to reset! will reset the timeout. You can also clear
the timeout by setting it to -1.
The timeout is implemented as a Command decorator.
2012-07-18 20:27:44 -07:00
Matthew Horan
bfbda84141
Move window change handling into WebPageManager
2012-05-29 22:23:02 -04:00
Matthew Horan
82f84fbde1
WebPageManager is no longer a singleton
2012-05-29 22:23:02 -04:00
Matthew Horan
efa577c3f0
First pass at within_window support
2012-05-25 21:09:41 -04:00
Joe Ferris
4531f65dc3
Move logic to wait for pending page loads into a decorator
2012-03-23 16:51:34 -04:00
Joe Ferris
1ed54b1d59
CommandParser accepts a CommandFactory and emits a Command
2012-03-21 19:30:43 -04:00
Joe Ferris
3ebe0fa577
Rename confusing method
2012-03-21 19:11:50 -04:00
Joe Ferris
67d5e3da0a
Keep a running command and a queued command instead of a running command and name/arguments
2012-03-21 18:56:01 -04:00
Joe Ferris
354180acb5
CommandFactory handles unknown commands by returning a NullCommand
2012-03-21 18:50:55 -04:00
Joe Ferris
5b57eee8c5
Simplify Visit
2012-03-16 18:53:43 -04:00
Joe Ferris
18607d0966
Try to detect when a command starts a page load and wait for it to finish
2012-01-31 13:57:57 -08:00
Joe Ferris
b4708b2b88
Refactor Connection
2011-10-14 11:57:28 -04:00
Joe Ferris
728feeeff7
Fixed subsequent failures when a page fails quickly before the next command begins
2011-05-05 18:27:04 -04:00
Joe Ferris
cc74875e4b
Created a Response object for the success/message pair
2011-05-05 17:55:40 -04:00
Joe Ferris
a8e64a5f10
Don't create a command until all arguments are received; don't start the next command if a page is still loading
2011-03-09 00:08:30 -05:00
Joe Ferris
3f519cd147
Implemented Driver#execute_script
2011-02-26 14:03:30 -05:00
Joe Ferris
cfb5babae5
Changed the wire protocol so that newlines in arguments don't break everything
2011-02-26 13:38:10 -05:00
Joe Ferris
3e32892e2b
Refactor Connection/Command so that arguments are passed in as a single QStringList instead of in consecutive calls to argumentReceived
2011-02-25 23:29:36 -05:00
Joe Ferris
0745b1ee1c
Initial commit
2011-02-24 23:13:11 -05:00