John Barker
9f75414a72
Split port discovery into its own function for better readability
2011-07-05 20:54:49 +08:00
John Barker
a8ad8b9560
Send success status message to stdout, remove comment
2011-06-30 09:29:36 +08:00
John Barker
13fe01c55d
Do at_exit first to make sure server is always killed, also put a select in so it fails a bit more gracefully after 10 seconds if something goes wrong with the server
2011-05-30 13:57:39 +08:00
John Barker
d0cf8f8ec4
Read the port output from webkit_server and use it to connect to
2011-05-30 13:57:39 +08:00
Aaron Gibralter
c563ed54cb
within_frame
now works. Takes either an index or a frame name/id.
2011-04-20 18:12:03 -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
e28cc06cab
Fixed multiple browsers starting because before(:all) runs multiple times; fixed separate app servers starting for each example; added injectable class for debugging wire protocol
2011-03-11 11:19:59 -05:00
Joe Ferris
9e27f7d6f4
Initial gem
2011-02-26 18:29:01 -05:00
Joe Ferris
7451010c18
Added commented out integration specs
2011-02-26 17:02:00 -05:00
Joe Ferris
3f519cd147
Implemented Driver#execute_script
2011-02-26 14:03:30 -05:00
Joe Ferris
cfb5babae5
Changed the wire protocol so that newlines in arguments don't break everything
2011-02-26 13:38:10 -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
934964e6a1
Only create one browser/server during rake test
2011-02-25 23:47:55 -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
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
Tristan Dunn
77ff0b4fc5
Remove debugging output.
2011-02-25 17:44:16 -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
Joe Ferris
d84f5c9a2e
Raise WebkitError for invalid XPath expressions
2011-02-24 23:22:56 -05:00
Joe Ferris
0745b1ee1c
Initial commit
2011-02-24 23:13:11 -05:00