Daniel Robertson
83b2388ef4
Implement GetElementRect webdriver command
...
Implement the webdriver Get Element Rect command
2016-02-24 11:41:42 -05:00
rohan.prinja
1f02c4ebbb
task -> thread
2016-01-10 17:58:13 +09:00
Tetsuharu OHZEKI
4906b38af9
Fix warning: Stop to use deprecated 'SocketAddr::new'
2015-12-11 10:39:23 -05:00
Beomjin Kim
729812f383
Moved CompositorMsg enum into compositing crate.
...
moved from components/msg/constellation_msg.rs
to components/compositing/lib.rs
dependencies on compositing crate added in ports/cef/Cargo.lock
2015-12-11 13:42:14 +09:00
bors-servo
0f72049363
Auto merge of #8705 - jsanders:fix-sleep-ms-deprecations, r=metajack,Wafflespeanut
...
Use thread::sleep instead of deprecated sleep_ms
Similarly, change one instance of `thread::park_timeout_ms`.
Fixes #8694
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8705 )
<!-- Reviewable:end -->
2015-11-30 09:20:15 +05:30
bors-servo
a877a56e0e
Auto merge of #8661 - craftytrickster:8623/some-webdriver-commands, r=jgraham
...
Webdriver - GetWindowSize/IsEnabled/IsSelected
Added handlers for https://github.com/servo/servo/issues/8623 :
GetWindowSize
IsEnabled(WebElement)
IsSelected(WebElement)
I am not sure how to actually verify my webdriver code works, if someone can give advice I would make the necessary changes.
Thanks!
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8661 )
<!-- Reviewable:end -->
2015-11-30 03:42:54 +05:30
David Raifaizen
8d451076e1
Removed duplicate webdriver_traits file and added webdriver handler for GetWindowSize, IsSelected and IsEnabled
2015-11-29 15:48:23 -05:00
James Sanders
3659218c59
Use thread::sleep instead of deprecated sleep_ms
...
Similarly, change one instance of `thread::park_timeout_ms`.
Fixes #8694
2015-11-29 13:41:04 -07:00
Guillaume Gomez
6e7de62b38
Add check up on extern crate order and sort extern crates alphabetically
2015-11-28 03:11:08 +01:00
jmr0
df49cf2b13
adding tidy rule to warn against use of &String and refactoring instances of &String in codebase
2015-11-25 21:49:12 -05:00
James Graham
f7258e4fcc
Add support for getting an element's computed style through WebDriver.
2015-11-20 13:23:38 +00:00
Patrick Walton
1c130819ca
compositing: Split Servo up into multiple sandboxed processes.
...
Multiprocess mode is enabled with the `-M` switch, and sandboxing is
enabled with the `-S` switch.
2015-11-19 16:38:04 -05:00
bors-servo
7f95693288
Auto merge of #8564 - jgraham:webdriver_attr, r=Ms2ger
...
Implement Get Element Attribute WebDriver command
This intentionally doesn't implement the special handling for boolean
attributes yet, since that requires some kind of exhaustive list of all
such attributes
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8564 )
<!-- Reviewable:end -->
2015-11-19 23:16:25 +05:30
James Graham
6446cc3db8
Implement Get Element Attribute WebDriver command
2015-11-18 11:52:05 +00:00
Keith Yeung
19294db6e5
Split ConstellationMsg into ScriptMsg and CompositorMsg
2015-11-16 23:10:53 -08:00
James Graham
09b9293b09
Implement support for WebDriver send keys command.
...
Supports sending keys to an element. The specification here is still
rather unfinished so the error handling and so on in this code will
need iteration as it becomes clearer what the expected behaviour is.
2015-11-16 22:48:26 +00: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
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
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