Testing the width of a page on a mobile device using Playwright
Create a new browser context with a narrow screen, then get document.body.scrollWidth to get the width of the displayed page.
评论
?
参与讨论
Create a new browser context with a narrow screen, then get document.body.scrollWidth to get the width of the displayed page.