Levi Kennedy
7bf3c80031
Clear localStorage on reset!
2013-04-25 20:00:21 -07:00
Matthew Horan
be22bfe244
Share the NetworkAccessManager across WebPages
...
Destroying the NetworkAccessManager seems to result in "terminate called
without an active exception" segfaults. The documentation states that an
application requires only a single single NetworkAccessManager.
2013-03-18 08:14:35 -04:00
Matthew Horan
91a18aef1f
Back the logger with a QFile
...
Previously all messages were written to a string which grew unbounded
when logging was disabled.
2013-01-15 22:40:20 -05:00
Matthew Horan
b28452e8ac
Emit loadStarted and pageFinished on WebPage state change
...
Instead of emitting loadStarted when a reply is created and pageFinished
when all pending replies have finished, emit these signals when the
corresponding WebPage events fire.
2012-12-05 21:05:11 -05:00
Matthew Horan
5bef33624c
Don't wait for finished replies
...
Synchronous requests will have emitted the finished signal by the time
we connect to it.
2012-12-04 00:24:43 -05:00
Matthew Horan
f20d32df10
Set URL to about:blank on WebPage initialization
2012-10-25 23:46:52 -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
Matthew Horan
f95e4ebe0b
Use old method to find current URL in Qt < 4.8.0
2012-10-23 23:24:42 -04:00
Joe Ferris
cae5119eef
Fix issues with Qt 4.8
2012-10-23 21:00:50 -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
Joe Ferris
d9b18985e1
Command to enable a more useful debug log
2012-07-08 09:01:26 -07:00
Matthew Mongeau
784b9b7f63
Setup multi-window sync.
2012-06-29 10:43:50 -04:00
Matthew Horan
58e6a25398
Shared cookie jar for all windows
2012-06-21 23:34:51 -04:00
Matthew Horan
126411337e
Close new windows on reset
2012-05-29 22:23:02 -04:00
Matthew Horan
d154a65fe8
Use the foreach macro to iterate through pages
2012-05-29 22:23:02 -04:00
Matthew Horan
8f8c95d980
New windows should respect ignore_ssl_errors
2012-05-29 22:23:02 -04:00
Matthew Horan
f80125e6cb
Pass the WebPageManager to each command
2012-05-29 22:23:02 -04: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
fe46eaf50d
Implement window_handles and window_handle for proper window switching
2012-05-29 22:20:10 -04:00
Matthew Horan
468bec886f
Return to the first window after yield
2012-05-25 21:09:41 -04:00
Matthew Horan
efa577c3f0
First pass at within_window support
2012-05-25 21:09:41 -04:00