8000 chore: roll driver to 1.53.0-alpha-2025-05-21 by dgozman · Pull Request #3184 · microsoft/playwright-dotnet · GitHub
[go: up one dir, main page]

Skip to content

chore: roll driver to 1.53.0-alpha-2025-05-21 #3184

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

Merged
merged 1 commit into from
Jun 2, 2025

Conversation

dgozman
Copy link
Contributor
@dgozman dgozman commented Jun 2, 2025

@@ -402,18 +405,15 @@ public Task TapAsync(ElementHandleTapOptions? options = default)
public async Task<bool> IsVisibleAsync() => (await SendMessageToServerAsync("isVisible").ConfigureAwait(false))?.GetProperty("value").GetBoolean() ?? default;

public async Task<string> InputValueAsync(ElementHandleInputValueOptions? options = null)
=> (await SendMessageToServerAsync("inputValue", new Dictionary<string, object?>()
{
{ "timeout", options?.Timeout },
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no timeout in the protocol for this method.

@@ -842,9 +854,6 @@ public async Task<bool> IsHiddenAsync(string selector, FrameIsHiddenOptions? opt
=> (await SendMessageToServerAsync("isHidden", new Dictionary<string, object?>
{
["selector"] = selector,
#pragma warning disable CS0612 // Type or member is obsolete
["timeout"] = options?.Timeout,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no timeout in the protocol for this method.

@@ -853,9 +862,6 @@ public async Task<bool> IsVisibleAsync(string selector, FrameIsVisibleOptions? o
=> (await SendMessageToServerAsync("isVisible", new Dictionary<string, object?>
{
["selector"] = selector,
#pragma warning disable CS0612 // Type or member is obsolete
["timeout"] = options?.Timeout,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no timeout in the protocol for this method.

@@ -230,6 +230,6 @@ void ValidateCookies(IReadOnlyList<BrowserContextCookiesResult> cookies)
ValidateCookies(await Context.CookiesAsync("https://foo.com"));
ValidateCookies(await Context.CookiesAsync(null as string));
ValidateCookies(await Context.CookiesAsync(null as string[]));
ValidateCookies(await Context.CookiesAsync([]));
// ValidateCookies(await Context.CookiesAsync([]));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line does not compile for some reason. Needs investigation.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to find out why it regressed before we land.

@@ -49,7 +49,6 @@ async Task<IAPIRequestContext> IAPIRequest.NewContextAsync(APIRequestNewContextO
["httpCredentials"] = options?.HttpCredentials,
["maxRedirects"] = options?.MaxRedirects,
["proxy"] = options?.Proxy,
["timeout"] = options?.Timeout,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This property was removed from the protocol.

@@ -254,7 +255,6 @@ async Task<IBrowser> CreateBrowserAsync()
return playwright.PreLaunchedBrowser;
}
var task = CreateBrowserAsync();
var timeout = options?.Timeout != null ? (int)options.Timeout : 30_000;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upstream defaults to zero timeout instead of 30_000, aligned above.

@dgozman dgozman requested a review from mxschmitt June 2, 2025 11:00
@@ -33,6 +33,17 @@ namespace Microsoft.Playwright;
/// Playwright script runs.
/// </para>
/// <para>
/// You probably want to <a href="https://playwright.dev/docs/api/class-testoptions#test-options-trace">enable
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment looks off.

@@ -230,6 +230,6 @@ void ValidateCookies(IReadOnlyList<BrowserContextCookiesResult> cookies)
ValidateCookies(await Context.CookiesAsync("https://foo.com"));
ValidateCookies(await Context.CookiesAsync(null as string));
ValidateCookies(await Context.CookiesAsync(null as string[]));
ValidateCookies(await Context.CookiesAsync([]));
// ValidateCookies(await Context.CookiesAsync([]));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to find out why it regressed before we land.

@dgozman dgozman force-pushed the roll-1.53.0-alpha-2025-05-21 branch from 8f24f68 to 5a5089d Compare June 2, 2025 12:33
@@ -415,6 +415,7 @@ private static (IReadOnlyList<TraceEventEntry> Events, Dictionary<string, byte[]
private class TraceEventEntry
{
public string Type { get; set; }
public string Title { get; set; }
public string ApiName { get; set; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public string ApiName { get; set; }

@dgozman dgozman merged commit 9d93d9c into microsoft:main Jun 2, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0