Paul Rouget
b90a4eee12
update image to 0.4.0
2015-10-21 08:37:41 +02:00
Glenn Watson
ed72e5766b
Remove webdriver use of SubpageId
2015-10-15 07:11:31 +10:00
bors-servo
eb7039d04d
Auto merge of #7987 - frewsxcv:clippy, r=Manishearth
...
Fix issues found by rust-clippy
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7987 )
<!-- Reviewable:end -->
2015-10-12 18:33:30 -06:00
Corey Farwell
20beaf5af3
Fix issues found by rust-clippy
2015-10-12 20:21:49 -04:00
Matt Brubeck
e2e142aae8
Replace libpng with image everywhere.
2015-10-10 07:43:11 -07:00
Ms2ger
0f6197a0fd
Fix incorrect indentation in handle_take_screenshot.
2015-10-06 18:13:22 +02:00
Ms2ger
2e16c3ca8a
Avoid an unnecessary unwrap() call in handle_take_screenshot.
2015-10-06 18:12:55 +02:00
James Graham
bd4e0a1439
Add pref reset support to the WebDriver API.
2015-09-25 00:58:53 +01:00
James Graham
79e548905e
Enable resetable and String prefs.
...
This allows both boolean and string-type preferences. It
also implements a system where prefs that are read from a
configuration file can be reset back to their initial value,
which is useful in a number of cases e.g. when running tests
to ensure that each test starts with the same values for
the prefs.
2015-09-25 00:58:48 +01:00
Ravi Shankar
889eec364b
sorted the extern crate, mod & use declarations
2015-09-24 02:12:45 +05:30
bors-servo
67cf241acd
Auto merge of #7548 - jgraham:webdriver_prefs, r=metajack
...
Add get/set pref extensions to webdriver server.
This can be used by the test framework to ensure that the correct prefs are
set for a test without restarting the browser
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7548 )
<!-- Reviewable:end -->
2015-09-14 22:08:28 -06:00
Mathieu Rheaume
7320433cca
Remove 'get_*' on getters as per RFC 0344 on various components
2015-09-12 20:14:01 -04:00
James Graham
e0a7b2b5bb
Add get/set pref extensions to webdriver server.
...
This can be used by the test framework to ensure that the correct prefs are
set for a test without restarting the browser
2015-09-08 19:16:28 +01:00
Johann Tuffe
ec07178b6f
sort all uses
2015-08-20 20:47:12 +08:00
Josh Matthews
8bb853f643
Fix existing syntactics nits.
2015-08-16 10:30:43 -04:00
Patrick Walton
2aa5174246
script: Make the resource task communication use IPC channels.
2015-07-31 11:28:09 -07:00
Corey Farwell
9415c92a5c
Clean up whitespace, long lines for WebIDLs
2015-07-26 22:12:10 +07:00
Bogdan Cuza
0baa6b477c
Replace astersisks with appropriate versions in deps
2015-07-20 20:08:08 +03:00
James Graham
f44470ef52
Ensure we get the post-redirect url
2015-07-19 20:40:55 +01:00
James Graham
2a701cc339
Fixup rebase issues
2015-07-19 20:40:12 +01:00
James Graham
512ba50315
Add some more WebDriver capabilities from the spec.
2015-07-19 13:01:09 +01:00
James Graham
f28219b8cb
Implement WebDriver Refresh command
2015-07-19 13:01:08 +01:00
James Graham
9eade19897
Add support for the Get URL WebDriver command.
2015-07-19 12:55:06 +01:00
Patrick Walton
b6485a9eaf
compositing: Make the constellation messages serializable.
2015-07-18 12:43:08 -07:00
James Graham
22c06307b8
Implement timeout for url load from WebDriver.
2015-06-17 00:25:23 +01:00
Eduard Burtescu
00e8e5f77d
Use the correct log crate and setup env_logger in main.
2015-06-06 23:20:40 +03:00
Corey Farwell
a14c745a6a
Bump rust-url version: 0.2.16 → 0.2.35
2015-06-04 16:45:15 -04:00
James Graham
aa0f7a7a12
Improve the stability of tests run using WebDriver.
...
* Wait for the correct pipeline to return a LoadComplete message
before signalling a load is complete, and ensure that the root
pipeline is the one corresponding to the active document of the top
level browsing context, even if this has not yet painted.
* Ensure that TakeScreenshot operates on the correct pipeline
* Reset the screenshot ready flag whenever we decide that we are ready
to take a screenshot.
2015-06-02 11:13:18 +01:00
James Graham
49f1b13ad9
Add support for switching frames with the webdriver API.
...
This moves webdriver_traits into msg to avoid a circular dependency.
2015-06-01 23:18:55 +01:00
Corey Farwell
5793add4cd
Make variable binding more consistent with rest of the file
...
https://reviewable.io/reviews/servo/servo/6174#-Jq48M5Vu-YnswI0jcvD
2015-05-24 10:50:36 -04:00
Corey Farwell
8e3f4bba85
Reduce max line length from 150 to 120 characters
...
Part of https://github.com/servo/servo/issues/6041
2015-05-24 00:01:49 -04:00
James Graham
50f59c8255
Add support for timing out scripts
2015-05-14 10:59:20 +01:00
James Graham
8d10fa1f2d
Add basic support for executeAsyncScript.
...
This relies on a global webdriverCallback function, which is visible to content.
Obviously that's not a long term solution for a number of reasons, but it allows
us to experiment for now
2015-05-14 10:59:17 +01:00
James Graham
98cb65ca0a
Wait for the root pipeline to become ready before running webdriver commands.
2015-05-14 10:59:16 +01:00
James Graham
28ac0abf6a
Make WebDriver Get() command wait on pages loading before returning.
...
This makes using WebDriver significantly less racy. Also
refactors the message structure a little
2015-05-14 10:59:10 +01:00
bors-servo
263b69cf7f
Auto merge of #6008 - jgraham:webdriver_get_active_element, r=jdm
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6008 )
<!-- Reviewable:end -->
2015-05-11 12:33:26 -05:00
James Graham
6e639de664
Add support for getActiveElement webdriver command
2015-05-11 17:31:23 +01:00
James Graham
5f4c66e6d5
Add basic browser capabilities
2015-05-11 17:30:06 +01:00
James Graham
9e44206760
Add WebDriver support for getting elements by selector.
...
Also adds example support for getting the name and text properties of the elements.
2015-05-08 22:25:37 +01:00
James Graham
5311d9ab59
Support WebDriver takeScreenshot command.
...
This adds support for compositing to a PNG without actually quiting
the browser.
2015-05-07 09:56:15 +01:00
James Graham
1576107c45
Implement webdriver commands for back/forward/title/handles.
2015-05-06 12:22:10 +01:00
Himaja
01eb31ae8a
1. Add an Option<Pipeline_id> field to the LoadData struct, and a corresponding parameter to LoadData::new()
...
2. Change addEvent in the NetworkEventActor to add_request and add_response
2015-05-05 12:31:40 -04:00
Simon Sapin
ef8edd4e87
Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.
2015-05-05 10:07:34 -04:00
Prabhjyot Singh Sodhi
b980278d90
Uniformise the various Msg types [ #5882 ]
2015-04-30 01:22:16 +05:30
Adenilson Cavalcanti
7ebb30edb5
Squashing a warning on WebDriver.
2015-04-23 14:20:01 -07:00
James Graham
c2fc6e311a
Add script execution support via WebDriver
2015-04-23 16:14:27 +01:00
James Graham
009e2baaf0
Add enough Webdriver support to enable Get().
...
This is incomplete in several ways:
* It assumes that there's only one constellation (i.e. top level browsing context), ever.
* The session support is very basic indeed (no capabilities)
* Passing channels over channels may not sit well with IPC
* The error handling is mostly missing
2015-04-16 16:02:43 +01:00
Josh Matthews
5728799479
Get the barest bones of webdriver integration ready for keeners.
2015-04-06 18:22:32 -04:00