Closed potnoddle closed 2 months ago
Thank you for filing a feature request. Since in .NET we can't cast a type into another type (class) easily, we were forced to re-use the BrowserNewContextOptions
type for the Playwright.Devices
Dictionary. We don't feel comfortable to expose DefaultBrowserType
on it, since it would mislead users when creating a new context.
I recommend to make a copy of the JSON file an reading it manually as a workaround, since Playwright doesn't change it often over time.
🚀 Feature Request
For some reason the DefaultBrowserType is missing from the BrowserNewContextOptions, which is strange as it's found in the source json file; deviceDescriptorsSource.json.
Alternatively is there another way of selecting this value.
Example
using var playwright = await Playwright.CreateAsync();
Motivation
I need the default browser type by device!