This helps a lot to produce nice logging:
```js
const { chromium, webkit } = require('playwright');
(async () => {
for (const browser of [chromium, webkit]) {
console.log(`Testing on ${browser.webEngine()}`);
const browser = await browser.launch();
// ...
await browser.close();
}
})();
```
NOTE: the `webEngine()` is picked over `browserName()` so that other
chromium-based browsers, like Edgium, will correctly report
their rendering engine.
|
||
|---|---|---|
| .. | ||
| api.md | ||
| troubleshooting.md | ||
| web.md | ||