Defaults to true unless the devtools option is true. Defaults to true.Ĭlose the browser process on SIGTERM. Defaults to true.Ĭlose the browser process on Ctrl-C. Learn more about the Firefox user preferences at about:config.Ĭlose the browser process on SIGHUP. Note that Playwright only works with the bundled Chromium, Firefox or WebKit, use at your own risk.įirefox user preferences. If executablePath is a relative path, then it is resolved relative to the current working directory. Path to a browser executable to run instead of the bundled one. Specify environment variables that will be visible to the browser. In either case, the downloads are deleted when the browser context they were created in is closed. Otherwise, temporary directory is created and is deleted when browser is closed. If specified, accepted downloads are downloaded into this directory. If this option is true, the headless option will be set false. Defaults to false.Ĭhromium-only Whether to auto-open a Developer Tools panel for each tab. Read more about using Google Chrome and Microsoft Edge.Įnable Chromium sandboxing. Supported values are "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", "msedge-canary". The list of Chromium flags can be found here.īrowser distribution channel. This article describes some differences for Linux users.Īdditional arguments to pass to the browser instance. See this article for other differences between Chromium and Chrome. Stock browsers like Google Chrome and Microsoft Edge are suitable for tests that require proprietary media codecs for video playback. If Google Chrome (rather than Chromium) is preferred, a Chrome Canary or Dev Channel build is suggested. Use executablePath option with extreme caution. There is no guarantee it will work with any other version. Pass 0 to disable timeout.ĮxecutablePath Added in: v1.8 browserType.executablePathĪ path where Playwright expects to find a bundled browser executable.Ĭhromium-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. Maximum time in milliseconds to wait for the connection to be established. Timeout number (optional) Added in: v1.11 # Useful so that you can see what is going on. Slows down Playwright operations by the specified amount of milliseconds. SlowMo number (optional) Added in: v1.11 # Logger Logger (optional) Added in: v1.14 # Headers Object (optional) Added in: v1.11 #Īdditional HTTP headers to be sent with connect request. A CDP websocket endpoint or http url to connect to.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |