On this special site, you'll find the correct executable path if you have a GUI installed. This would be edge://version, chrome://version or brave://version depending your browser. Note: To easier find out the executable path of the browsers, you can open the version page of the related browser.
C:\Users\\AppData\Local\Google\Chrome SxS\Application\chrome.exe - Google Chrome Canary on Windows./usr/bin/google-chrome-unstable - Google Chrome Canary on Ubuntu./Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary - Google Chrome Canary on macOS./Applications/Microsoft\ Edge\ Canary.app/Contents/MacOS/Microsoft\ Edge\ Canary - Microsoft Edge Canary on macOS.On Windows systems, the browsers are installed in the C:\Program Files (x86)\ directory. For Linux, the browsers are commonly installed in the /usr/bin directory, you'll find some examples below. On macOS systems, the browsers are installed in the /Applications directory, where you have inside the related binaries. To use them we have to only adjust the executable path option which Playwright will use to launch the browsers.
Due to this core requirement, we have to use a recent version (daily build - Canary) of them to ensure that the needed APIs schemas are matching and existing. Since these browsers are based on the Chromium browser, Playwright interacts with them over the Chrome DevTools Protocol to open new tabs, click on elements or execute JavaScript. Playwright provides already full support for Chromium, Firefox, and WebKit out of the box without installing the browsers manually, but since most of the users out there use Google Chrome or Microsoft Edge instead of the Open Source Chromium variant, it's in some scenarios safer to use them to emulate a more real-life browser environment. Testing a web application with end-to-end tests on the actually supported browsers is a real benefit to ensure that the application works as expected for example directly in the Continuous Integration workflow before it is merged and deployed. Automate Microsoft Edge and Google Chrome with PlaywrightĬontrol Chromium-based browsers like Google Chrome, Microsoft Edge, or Brave with Node.js.īy Max Schmitt, Published on Introduction