Skip to content
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

[REGRESSION]: Cannot set ChromiumSandbox launch option because of error "slowMo: expected number, got boolean" #2834

Closed
brutaldev opened this issue Jan 18, 2024 · 1 comment

Comments

@brutaldev
Copy link

brutaldev commented Jan 18, 2024

Context:

  • GOOD Playwright Version: 1.40.0
  • BAD Playwright Version: 1.41.0
  • Operating System: Windows
  • Extra: None

Code Snippet

var playwright = await Playwright.CreateAsync();
var chromeLaunchOptions = new BrowserTypeLaunchOptions
{
  ChromiumSandbox = false,  // <-- This is the problem.
};
var chrome = await playwright.Chromium.LaunchAsync(chromeLaunchOptions);

Describe the bug

On the call to LaunchAsync when using BrowserTypeLaunchOptions that sets the ChromiumSandbox value(true or false), the following exception is thrown:

Microsoft.Playwright.PlaywrightException: slowMo: expected number, got boolean
   at Microsoft.Playwright.Transport.Connection.InnerSendMessageToServerAsync[T](ChannelOwner object, String method, Dictionary`2 dictionary, Boolean keepNulls) in /_/src/Playwright/Transport/Connection.cs:line 208
   at Microsoft.Playwright.Transport.Connection.WrapApiCallAsync[T](Func`1 action, Boolean isInternal) in /_/src/Playwright/Transport/Connection.cs:line 538
   at Microsoft.Playwright.Core.BrowserType.LaunchAsync(BrowserTypeLaunchOptions options) in /_/src/Playwright/Core/BrowserType.cs:line 56

Simply rolling back to 1.40.0 makes this code work again.

Basic console app:

image

@brutaldev brutaldev changed the title [REGRESSION]: Cannot launch Chromium because of error "slowMo: expected number, got boolean" [REGRESSION]: Cannot set ChromiumSandbox launch option because of error "slowMo: expected number, got boolean" Jan 18, 2024
@mxschmitt
Copy link
Member

Folding into #2794 (comment)

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

No branches or pull requests

2 participants