-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for page load
and pageLoad
timeout type
#36
Comments
This is already handled in the facebook/upstream webdriver: All the end users need to do is to pass "page" timeout and the driver figures out the rest (unless I misunderstood what's being asked here). As to the "script" timeout, I'm honestly not sure how this code came out to be. I think I would leave it there if it's not doing any harm. |
Maybe I wasn't clear enough. What I've tried to say is that MinkSelenium2Driver users were passing either
I have no idea. Stumbled upon it while trying to improve test coverage for timeout-handling code. |
Ah, ok, understood, so basically adding 2 new cases to applyTimeouts: switch(...) {
case 'page load': ⭐
case 'pageLoad': ⭐
case 'page':
... I'll fix that, but I'll leave the "script" one out for now (what you said seems true though). |
My thoughts exactly. |
Currently, the
WebdriverClassicDriver::applyTimeouts
method supports these timeout types:script
;implicit
;page
.The
script
andimplicit
are timeout types shared by Selenium Server 2 and W3C-compatible Selenium Server (3 and 4).However, Selenium 2 uses
page load
instead of page and W3C-compatible Selenium Server (3 and 4) usespageLoad
.Proposing to add support for
page load
andpageLoad
values to ease migration from MinkSelenium2Driver, which supplied given timeout types as-is to the Selenium Server.P.S.
page
timeout to avoid confusion, but that might look like a BC break.script
timeout type is completely useless because it only affects\Facebook\WebDriver\Remote\RemoteWebDriver::executeAsyncScript
method usages, that aren't found in this driver.The text was updated successfully, but these errors were encountered: