BrowserType
Namespace: Glutinum.Playwright Parent: Glutinum.Playwright.global
type BrowserType abstract member launch : options : LaunchOptions option -> Promise<Browser> abstract member name : string
Methods
Returns the browser instance.
Usage
You can use
ignoreDefaultArgs
to filter out --mute-audio from default arguments:
const browser = await chromium.launch({ // Or 'firefox' or 'webkit'. ignoreDefaultArgs: ['--mute-audio']});> Chromium-only Playwright can also be used to control the Google Chrome or Microsoft Edge browsers, but it
works best with the version of Chromium it is bundled with. There is no guarantee it will work with any other
version. Use
executablePath
option with extreme caution.
>
> If Google Chrome (rather than Chromium) is preferred, a
Chrome Canary or
Dev Channel build is suggested.
>
> Stock browsers like Google Chrome and Microsoft Edge are suitable for tests that require proprietary media codecs
for video playback. See
this article for
other differences between Chromium and Chrome.
This article
describes some differences for Linux users.
options : LaunchOptions option