Commit Graph

28 Commits

Author SHA1 Message Date
Matthew Mongeau 5b5067f243 Added browser.authenticate for http basic authentication 2012-06-15 12:49:02 -04:00
Matthew Horan f80125e6cb Pass the WebPageManager to each command 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 efa577c3f0 First pass at within_window support 2012-05-25 21:09:41 -04:00
Sean Geoghegan 646eabc68d Add option to disable image loading in WebKit. 2012-05-11 14:17:00 -04:00
Joe Ferris 4ca10d29ed Switch ignore ssl from a command-line flag to a server command 2012-05-04 16:00:25 -04:00
Tom Lea 04fde02ad7 Add a resize_window method to the driver.
Allow users to resize the webkit viewport via
Capybara::Driver::Webkit#resize_window(width, height).

This can be called before or after page load, and fires resize events as expected.
2012-04-03 18:54:12 -04:00
Joe Ferris 85dcc729dd Pass command arguments to the constructor 2012-03-16 19:58:58 -04:00
Marc Schwieterman caa86b72c4 create CurrentUrl command 2012-02-17 11:55:19 -05:00
Joe Fiorini 7f907a0099 Add command to retrieve URL modified by Javascript
If I use pushState to change the URL Browser#current_url still returns
the URL as it was after the original request. This commit adds a command
for RequestedUrl, which is the QtWebkit method for retrieving a URL
modified by Javascript or a redirect.
2012-01-13 11:02:09 -05:00
Joe Fiorini 62b49914b8 Add ability to query for console messages & errors
- This changes the format of console message output to use "|" as the
delimiter instead of ":"; ":" is no good for splitting when there are
URLs and error messages in the output
- WebPage tracks all console messages and clears them out on reset
2011-11-15 21:14:21 -05:00
Niklas Baumstark 25281b77dc add option to set an HTTP proxy 2011-10-14 17:37:34 -04:00
Niklas Baumstark fb119f6ff8 adds cookie management functions to Webkit::Browser 2011-09-30 11:47:21 -04:00
Matthew Mongeau 7b3d142729 Response headers supported. 2011-08-19 11:57:39 -04:00
Joe Ferris 558c58babc Status codes 2011-08-19 10:20:28 -04:00
Matthew Mongeau 81ad8fd130 Implement source and body. Evaluate javascript should return nil when empty 2011-07-29 15:06:41 -04:00
Mike Nicholaides 17873240b1 Adding ability to render webpage to a PNG
The driver has a #render method which takes a destination file path and
an options hash for setting the dimensions of the browser's viewport
2011-07-03 14:10:53 -04:00
shogo-ohta ee1388e329 add header support 2011-06-24 13:55:03 +09:00
Aaron Gibralter 182cb2e5b7 Working on frame handling. In terms of the QT code, the non-frame-related
specs pass with these changes (e.g. mainFrame() => currentFrame() and the new
injectJavascriptHelpers() code in WebPage.cpp).

It seems like the current JS+xpath implementation dives in to iframes already.
Is this desired behavior? I wonder if that works with x-domain iframes? I
doubt it...

Also, this design assumes that we only step one frame down at a time...

Lastly, I'm really not sure how QWebKit decides which frame is currentFrame().
For now, I'm hoping to be able to use the QWebFrame setFocus() method. This
may be a dead end though. We may have to have WebPage manually keep track of
the "current" frame.
2011-04-20 18:12:03 -04:00
Joe Ferris 3f519cd147 Implemented Driver#execute_script 2011-02-26 14:03:30 -05:00
Joe Ferris 13426ba4c1 Implement Driver#evaluateScript 2011-02-26 13:02:43 -05:00
Joe Ferris 52e9bee48b Merged Tristan's Url and Source commands 2011-02-26 10:06:11 -05:00
Joe Ferris 63366bf614 Implemented Node#text; refactored Node commands so that they can be easily added in Javascript 2011-02-25 23:39:29 -05:00
Tristan Dunn 003529cd9f Implement source for driver. 2011-02-25 18:04:23 -05:00
Tristan Dunn 92a17ae94e Implement current_url for driver. 2011-02-25 17:53:36 -05:00
Joe Ferris e0c4f6f57d Fetch attribute values 2011-02-25 00:15:08 -05:00
Joe Ferris 9f41e030f5 Refactor command lookup so that generated commands can automatically be added 2011-02-24 23:52:57 -05:00