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.

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论