Rayrun
← Back to Discord Forum

How to increase the resolution of the screen when running a test?

I have a button intercepting a click to another element, which can be solved (for now!) by increasing the lenght of the browser I've tried using force click but the clicks are still getting intercepted by this pesky little button

This thread is trying to answer question "How to increase the resolution of the screen when running a test?"

3 replies

Might suggest there are two things one is the physical devices resolution, not sure this will matter much. The viewport in the link @hubspace pointed you is what you can change.

if it doesn't break too much the original page, you can get rid of the disturbing button 🙂

const littlePeskyBtn = page.locator('<appropriateSelector>')
await littlePeskyBtn.evaluate(el => el.remove)

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.