Commit Graph

13 Commits

Author SHA1 Message Date
Washington Luiz 6675770509 Rename logger() => log() and prepend info with current time 2017-11-09 08:10:04 -08:00
Andrey Chernih 77973a47ae Instantiate errors in capybara-webkit 2013-05-21 21:48:38 +04:00
Matthew Horan c74949bd04 Rename Command::emitFinished to finish 2013-02-11 18:31:41 -05:00
Matthew Horan 6c72a99174 Serialize errors as JSON 2013-02-11 00:04:35 -05:00
Matthew Horan bca84f9a57 Don't start queued commands more than once
TimeoutCommand may receive pageFinished multiple times before
PageLoadingCommand has finished.
2012-12-18 22:46:24 -05:00
Sean Geoghegan 77811ca9ba Fix memory leak of response.
Turns Response into a QObject and sets parent to the
command that emits it.

Each Command is also a child of the decorator commands,
Timeout and PageLoading commnds, so that deleting the
top level command will delete all the children.

See discussion in #430.
2012-12-14 01:46:54 -05:00
Matthew Horan 56fcecdd16 Process all pending events before checking if page is loading
JavaScipt actions and other asynchronous events which cause a WebPage
load may not be processed by the time we receive an incoming command.
Ensure that these events get processed before checking if the page is
loading by calling QApplication::processEvents().

Fixes spurious failures throughout the test suite.
2012-11-30 21:37:56 -05: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
Vokhmin Alexey V af26babe24 #362: Include QTimer library has been updated. 2012-08-10 14:16:57 -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