Commit Graph

19 Commits

Author SHA1 Message Date
Hubert Łępicki 0c8e347b61 support attaching file to HTML5 input with multiple attribute 2011-07-20 21:58:23 +02:00
Hubert Łępicki a4490083b6 allow uploading files with forms 2011-07-19 00:28:09 +02:00
Mike Nicholaides 37b3d24fd8 Documenting that some code was borrowed from Phantom.js 2011-07-03 14:10:53 -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
os0x 818f654e4e fix spell
move header specs to driver_spec
2011-06-25 20:48:01 +09:00
shogo-ohta ee1388e329 add header support 2011-06-24 13:55:03 +09:00
Joe Ferris 7a8cd4cc2f Raise errors with the requested URL and not the last loaded URL 2011-05-05 10:30:43 -04:00
Joe Ferris 81a039f3bc Uncompress Javascript when compressed 2011-05-03 18:12:37 -04: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 30d90f9f35 Fixed alert/confirm/prompt crashing the page 2011-03-11 12:23:52 -05:00
Joe Ferris d4cd085e5e Fixed a build warning 2011-03-09 18:01:46 -05: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
Jason Morrison 156d5ea4f6 Don't delete javascriptString, QT holds onto it 2011-02-26 15:40:03 -05:00
Jason Morrison 2a7d49d503 Null-terminate the embedded capybara.js resource string 2011-02-26 14:23:05 -05:00
Joe Ferris 13426ba4c1 Implement Driver#evaluateScript 2011-02-26 13:02:43 -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
Joe Ferris 18d424803d Invoke Javascript functions by setting QObjects on the window object instead of string evals so that strings don't need to be escaped 2011-02-25 22:57:55 -05:00
Joe Ferris 54d7df3c4c Moved Javascript code into a .js file that gets loaded into each page 2011-02-25 22:32:22 -05:00
Joe Ferris 0745b1ee1c Initial commit 2011-02-24 23:13:11 -05:00