1
0
Fork 0
mirror of https://github.com/thoughtbot/capybara-webkit synced 2023-03-27 23:22:28 -04:00
Commit graph

13 commits

Author SHA1 Message Date
Hubert Łępicki
a4490083b6 allow uploading files with forms 2011-07-19 00:28:09 +02: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
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
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
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
3e32892e2b Refactor Connection/Command so that arguments are passed in as a single QStringList instead of in consecutive calls to argumentReceived 2011-02-25 23:29:36 -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