Commit Graph

6 Commits

Author SHA1 Message Date
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
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 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