Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Playwright be used to launch a browser instance

I'm finding that in some cases web pages are being rendered in one browser materially different than another browser. Specifically, Playwright running webkit is rendering a different structure than what I see when viewing the page in a standalone Chrome browser. No clue why and I can't do anything about it. This isn't a Playwright issue, it is rendering it the same way as a standalone browser would. Problem is I don't know of an up-to-date webkit based browser for Windows.

Is there a way using just Playwright to open a browser window that will let me manually enter a url and inspect the page as Playwright renders it?

like image 565
FarNorth Avatar asked Mar 21 '26 01:03

FarNorth


1 Answers

Tests safari engine on windows

npx playwright open --browser webkit

available options: chromium, firefox, webkit or all

like image 101
saulpalv Avatar answered Mar 22 '26 13:03

saulpalv