You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it safe to say that servo/components/webdriver_traits/lib.rs should be deleted since it seems to be a duplicate of servo/components/msg/webdriver_msg.rs and I do not see any usages of it?
However, if possible, I do have a few questions:
Getting a reference to the web element seems easy enough, I can copy what is being done in webdriver_handlers.rs, for example in the handle_get_name function. However, once I have it, do I have to check get_enabled_state for isEnabled and get_focus_state for isSelected? What would the check for isDisplayed?
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? craftytrickster@5c2e3e3#diff-a1d91ab451658c0134bb24f8f406dccbR360
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.
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.
Activity
Ms2ger commentedon Nov 20, 2015
AcceptAlertAddCookie(AddCookieParameters)CloseDeleteCookiesAdded WebDriver DeleteCookies Function #23006DeleteCookie(String)DeleteSessionDismissAlertElementClear(WebElement)ElementClick(WebElement)ElementTap(WebElement)FindElementElements(WebElement, LocatorParameters)FindElementElement(WebElement, LocatorParameters)GetAlertTextGetCookiesGetCookie(String)GetCSSValue(WebElement, String)GetElementRect(WebElement)Webdriver - GetWindowSize/IsEnabled/IsSelected #8661GetWindowSizeIsDisplayed(WebElement)Webdriver - GetWindowSize/IsEnabled/IsSelected #8661IsEnabled(WebElement)Webdriver - GetWindowSize/IsEnabled/IsSelected #8661IsSelected(WebElement)MaximizeWindowSendAlertText(SendAlertTextParameters)SetWindowSize(WindowSizeParameters)Implemented webdriver SetWindowSize. #11179SwitchToWindow(SwitchToWindowParameters)craftytrickster commentedon Nov 22, 2015
Is it safe to say that
servo/components/webdriver_traits/lib.rsshould be deleted since it seems to be a duplicate ofservo/components/msg/webdriver_msg.rsand I do not see any usages of it?jdm commentedon Nov 22, 2015
Yep!
craftytrickster commentedon Nov 22, 2015
I would like to try the following four:
However, if possible, I do have a few questions:
Getting a reference to the web element seems easy enough, I can copy what is being done in
webdriver_handlers.rs, for example in thehandle_get_namefunction. However, once I have it, do I have to checkget_enabled_statefor isEnabled andget_focus_statefor isSelected? What would the check for isDisplayed?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?
craftytrickster@5c2e3e3#diff-a1d91ab451658c0134bb24f8f406dccbR360
I'd appreciate the help, thank you.
jdm commentedon Nov 22, 2015
https://w3c.github.io/webdriver/webdriver-spec.html#h-element-displayedness seems relevant for the first question.
jdm commentedon Nov 22, 2015
As for selected, https://w3c.github.io/webdriver/webdriver-spec.html#is-element-selected .
jdm commentedon Nov 22, 2015
And the window size response should be constructed according to https://w3c.github.io/webdriver/webdriver-spec.html#dfn-get-window-size .
craftytrickster commentedon Nov 22, 2015
@jdm thanks!
jgraham commentedon Nov 24, 2015
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.
Auto merge of #8661 - craftytrickster:8623/some-webdriver-commands, r…
craftytrickster commentedon Dec 1, 2015
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.
Ms2ger commentedon Dec 2, 2015
confirm/promptaren't implemented, and probably won't be for quite a while, so do ignore them.4 remaining items
Implement GetElementRect webdriver command servo#8623
Implement GetElementRect webdriver command servo#8623
Implement GetElementRect webdriver command servo#8623
Implement GetElementRect webdriver command servo#8623
Implement GetElementRect webdriver command servo#8623
Auto merge of #9708 - danlrobertson:i8623, r=KiChjang
asajeffrey commentedon May 13, 2016
#11179 implements SetWindowSize.
asajeffrey commentedon May 18, 2016
A couple of related issues: #11254 (support webdriver actions) and #11253 (support webdriver sessions).
dlrobertson commentedon May 21, 2016
#10826 implements
AddCookie,GetCookie, andGetCookiesand has been rebased.servo: Merge #8661 - Webdriver - GetWindowSize/IsEnabled/IsSelected (…
Auto merge of #23006 - aditj:aditj-patch-7, r=jdm
servo: Merge #8661 - Webdriver - GetWindowSize/IsEnabled/IsSelected (…
servo: Merge #8661 - Webdriver - GetWindowSize/IsEnabled/IsSelected (…
servo: Merge #8661 - Webdriver - GetWindowSize/IsEnabled/IsSelected (…
lumiscosity commentedon Jul 28, 2025
Bullet points that are newly resolved now:
Partially implemented:
Unimplemented: