-
Notifications
You must be signed in to change notification settings - Fork 4.2k
chore: move timeout handling to the client #35988
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
base: main
Are you sure you want to change the base?
Conversation
Test results for "tests 1"6 failed 7 flaky39226 passed, 804 skipped Merge workflow run. |
Test results for "tests 2"12 failed 145 flaky239469 passed, 9341 skipped Merge workflow run. |
@@ -1611,7 +1590,7 @@ Page: | |||
goBack: | |||
title: Go back | |||
parameters: | |||
timeout: number? | |||
timeout: number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a little worried that it's very easy to break in the ports without noticing. Maybe we can store per-client default timeouts on the server end?
@@ -90,6 +90,7 @@ export class BrowserContext extends ChannelOwner<channels.BrowserContextChannel> | |||
this._isChromium = this._browser?._name === 'chromium'; | |||
this.tracing = Tracing.from(initializer.tracing); | |||
this.request = APIRequestContext.from(initializer.requestContext); | |||
this.request._timeoutSettings = this._timeoutSettings; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Every client will have to do the same thing in every lang. I think we should consider changing this settings to be per client on the server end.
@@ -344,7 +331,7 @@ export class AndroidDevice extends SdkObject { | |||
proxy: options.proxy, | |||
protocolLogger: helper.debugProtocolLogger(), | |||
browserLogsCollector: new RecentLogsCollector(), | |||
originalLaunchOptions: {}, | |||
originalLaunchOptions: { timeout: 0 }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this is annoying.
} | ||
throw new Error('ElementHandle belongs to unexpected scope'); | ||
const parentScope = this.parentScope().parentScope(); | ||
if (parentScope instanceof BrowserContextDispatcher) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But this is a change from
const scope = this.parentScope();
if (scope instanceof BrowserContextDispatcher)
return scope;
References #35987.