552 questions
4 votes
1 answer
96 views
Scrolling secondary scrollbars in webpage using Python Playwright
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 ...
Advice
0 votes
0 replies
21 views
Does Python Playwright used with Pytest have the ability to add a global script timeout value?
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....
2 votes
1 answer
132 views
How do you retry Playwright tests in Python?
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
How to have user log in once and then reuse the same session over different python-playwright browser tests?
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....
0 votes
0 answers
103 views
decrypting oddspot data through response interception
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....
0 votes
1 answer
132 views
Playwright: page content jumps alternating from left to right and back [closed]
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 ...
2 votes
1 answer
151 views
Playwright locator can find only one element by class
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() ...
-1 votes
1 answer
398 views
Fetch data from https://www.sofascore.com/?
This is my python code using on ubuntu to try fetch and extract data from https://www.sofascore.com/ I create this test code before using on E2 device in my plugin # python3 -m venv venv # source venv/...
1 vote
2 answers
230 views
How to generate bookmarks in a PDF?
I've been using Playwright to generate a document from HTML code with a table of content corresponding to the H1-6 tags I'm using. I was hoping that bookmarks in the PDF would be generated from those ...
0 votes
1 answer
176 views
How to abort an entire web request if a particular dialog appeared
I am currently trying to write a Playwright script to test a JavaScript page which is intended to produce several alert boxes. Because the testing is being done for beginners who would not understand ...
1 vote
2 answers
171 views
Python script for Playwright - final page in list causes "domcontentloaded" error
I'm trying to loop through a list of URLs checking if the pages contain the words "no longer available". I tested this out with a list of Wikipedia pages and it worked perfectly. When I use ...
0 votes
1 answer
79 views
How do I properly track authentication across pages from pff.com Domain
I am using Playwright and logging into the main authentication page. When I go to a new page (same domain), it returns results as if I'm not authenticated. If you go to the last URL w/out ...
1 vote
0 answers
172 views
How can Playwright send the Proxy-Authorization while using Chromium?
I have a proxy server that requires a username and password to access (e.g., 127.0.0.1:8000, username: abcdef, password: 123456). When I use Playwright to access a destination website through this ...
3 votes
1 answer
317 views
My Playwright python script doesn't find input form fields
So I want to automate adding many team players, I wrote a script to do this with Playwright. As the players are much, the issues is that the script don't seem to find the input fields like the first ...
1 vote
1 answer
336 views
Using PyTest and Playwright, run one method before loading all the test files
This question seems to be asked a lot, but I'm not finding any answers that work, or at least that work for what I'm looking for. The premise is simple: I have a website I need to automate testing on (...