Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement all webdriver commands. #8623
Comments
|
|
Is it safe to say that |
|
Yep! |
|
I would like to try the following four:
However, if possible, I do have a few questions: Also, I created a branch with a commit to implement the GetWindowSize, but I am not sure how to correctly convert the WindowSizeData to a correct WebDriverResponse. Does anyone have a suggestion? I'd appreciate the help, thank you. |
|
https://w3c.github.io/webdriver/webdriver-spec.html#h-element-displayedness seems relevant for the first question. |
|
As for selected, https://w3c.github.io/webdriver/webdriver-spec.html#is-element-selected . |
|
And the window size response should be constructed according to https://w3c.github.io/webdriver/webdriver-spec.html#dfn-get-window-size . |
|
@jdm thanks! |
|
Yeah, don't implement IsDisplayed. There isn't a correct way to do that at the moment (or possibly ever), and so we are pushing the application-specific approximation into the client for now. |
…=jgraham Webdriver - GetWindowSize/IsEnabled/IsSelected Added handlers for #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 -->
|
Do the alert items such as GetAlertText only deal with alerts or do they also deal confirm/prompt alerts as well? I ask because I only see Alert on the window methods, I do not see any mention of confirm/prompt. Should confirm/prompt be ignored for now? Edit: After looking at this some more, it seems to me that only SendAlertText is possible with the current window api available. |
|
|
|
I'd like to take a crack at this! If it is okay with everyone, I have an idea as to where to start with Let me know at |
|
Please do! You can test this by running servo with |
Implement the webdriver Get Element Rect command
Implement the webdriver Get Element Rect command
Implement the webdriver Get Element Rect command
Implement the webdriver Get Element Rect command
Implement the webdriver Get Element Rect command
Implement the webdriver Get Element Rect command
Implement the webdriver Get Element Rect command
Implement GetElementRect webdriver command: #8623 Implement the webdriver Get Element Rect command. Originally I wrote out the algorithm for [Step 7](https://w3c.github.io/webdriver/webdriver-spec.html#dfn-calculate-the-absolute-position) and then I found `GetBoundingClientRect`, and i thought it was probably best to use it instead. As always, feedback is very welcomed! <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9708) <!-- Reviewable:end -->
|
#11179 implements SetWindowSize. |
|
#10826 implements |
…from craftytrickster:8623/some-webdriver-commands); r=jgraham Added handlers for servo/servo#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! Source-Repo: https://github.com/servo/servo Source-Revision: a877a56e0e603c6cc8e9f951c2ad14b6fe8f9b62
Added WebDriver DeleteCookies Function <!-- Please describe your changes on the following line: --> This change adds DeleteCookies function of the webdriver crate to the servo webdriver server. See [spec](https://w3c.github.io/webdriver/#delete-all-cookies) --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix part of #8623 (GitHub issue number if applicable) <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23006) <!-- Reviewable:end -->
…from craftytrickster:8623/some-webdriver-commands); r=jgraham Added handlers for servo/servo#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! Source-Repo: https://github.com/servo/servo Source-Revision: a877a56e0e603c6cc8e9f951c2ad14b6fe8f9b62 UltraBlame original commit: d196549e27c9fc2de4f5fedd47341925fed2ed2c
…from craftytrickster:8623/some-webdriver-commands); r=jgraham Added handlers for servo/servo#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! Source-Repo: https://github.com/servo/servo Source-Revision: a877a56e0e603c6cc8e9f951c2ad14b6fe8f9b62 UltraBlame original commit: d196549e27c9fc2de4f5fedd47341925fed2ed2c
…from craftytrickster:8623/some-webdriver-commands); r=jgraham Added handlers for servo/servo#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! Source-Repo: https://github.com/servo/servo Source-Revision: a877a56e0e603c6cc8e9f951c2ad14b6fe8f9b62 UltraBlame original commit: d196549e27c9fc2de4f5fedd47341925fed2ed2c
Specification is at https://w3c.github.io/webdriver/webdriver-spec.html