558 questions
0
votes
0
answers
78
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
98
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
87
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() ...
0
votes
1
answer
244
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
172
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
130
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 ...
2
votes
2
answers
151
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 ...
1
vote
1
answer
76
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
129
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
271
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
254
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 (...
-1
votes
1
answer
56
views
TypeError: Controller.action() missing 1 required positional argument: 'self' on Controller of AI Agent [closed]
I have an AI Agent for which i have written a controller using Python 3.13 and Playwright.
@Controller.action(description='Get attribute and url of the page')
async def get_attr_url(self, browser: ...
0
votes
0
answers
95
views
Issues with testing SAP cloud application through Playwright python
I am trying to automate testing for an use case based on SAP Cloud application(Agent Performance Management) using Playwright python package. I am using chrome browser. When I launch the application ...
0
votes
1
answer
125
views
How to set all <select> elements to a specific value using Playwright sync_api in Python?
I’m using Playwright’s Python sync API (from playwright.sync_api import sync_playwright).
On my page I have multiple <select> elements like this:
<select class="sc-fzXfMv sc-fzXfMw ...
1
vote
2
answers
156
views
How to wait for element to disappear if you cannot rely on locators
Playwright discourages ElementHandle, but how else would I do the following?
# get a handle to the old message
old_message_element = page.locator("#message").element_handle()
# ...