Skip to main content
4 votes
1 answer
96 views

I am trying to automate a webpage containing more than one scrollbar. Sometimes the scrollbar is on the left side and sometimes it is in the middle of the page (e.g.: adjacent to a web table). These ...
0 votes
1 answer
2k views

I am trying to take multiple screenshots of a reddit thread using playwright. It works by starting at the first xpath of the first element of the thread and then increments that xpath till it reaches ...
Advice
0 votes
0 replies
21 views

We have some JavaScript Playwright tests, and they use a configuration that includes a global script 'timeout' value, and you can also set other timeouts in this config. So, in the playwright.config....
1 vote
2 answers
10k views

I have a website, let's say "exampleA.com" There are 12 clickable boxes on it, and clicking each box will take me to a different page. For example, clicking box1 will take me to page1.com, ...
3 votes
2 answers
2k views

Just for educational purposes, is there a way to do it? I ran: playwright codegen demo.playwright.dev/todomvc and got these: page.locator("video").click() page.get_by_label("YouTube ...
2 votes
1 answer
132 views

There is nice documentation for how to tell Playwright to retry tests using Node.js, but I can't find anything on how to do so with Python/Pytest. The closest solution I can find is pytest-...
0 votes
1 answer
138 views

Using dependencies = [ "pytest>=9.0.2", "pytest-playwright", ] in a Python application I am setting a a browser end to end test. I have defined custom markers: [tool.pytest....
3 votes
1 answer
5k views

Open a new tab manually on a browser open by Playwright I am using Playwright for Python to open a browser, visit a URL and then do some action. Can I keep the browser's window open after my code ...
0 votes
0 answers
103 views

import asyncio from datetime import datetime, UTC from playwright.async_api import async_playwright captured = [] async def run(): async with async_playwright() as p: browser = await p....
1 vote
2 answers
9k views

I need to translate Selenium code into Playwright. code: self.wait_for_element_not_present("element CSS here") Is the solution: Not self.page.locator("element CSS here")....
0 votes
1 answer
132 views

I am using playwright 1.57.0 to test login automation. The process fails when entering a verification code, after the credentials have been successfully submitted. The setup is as follows: # config ...
1 vote
2 answers
1k views

Playwright worksf on my machine when I run it through the normal Python interpreter, but when I try to deploy it as an Azure function I get errors. I'm trying to follow instructions here but I'm ...
2 votes
1 answer
151 views

I'm just starting in Playwright, and I'm confused by locator behavior. A page starts with the structure in the image below. Using url = 'https://skylines.aero/flights/115429' with p.sync_playwright() ...
0 votes
1 answer
141 views

This is my code you can see I am using playwright and selectolax to scrape the website. Whenever I execute the script the script extract data from the table on the website upto aria row index 29 and ...
5 votes
3 answers
4k views

Let's say I've requested a page and it's fully loaded. Is it possible to save the images from the rendered/loaded page without sending another request for the image? This would be to avoid just ...

15 30 50 per page
1
2 3 4 5
37