Skip to main content
Filter by
Sorted by
Tagged with
4 votes
1 answer
106 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 ...
Soumya C's user avatar
  • 171
Advice
0 votes
0 replies
24 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....
Aracknid416's user avatar
2 votes
1 answer
141 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-...
Peter's user avatar
  • 25
0 votes
1 answer
142 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....
k0pernikus's user avatar
  • 67.9k
0 votes
0 answers
105 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....
user32082283's user avatar
2 votes
1 answer
166 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() ...
Bret Hess's user avatar
  • 542
-1 votes
1 answer
441 views

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/...
RR-EB's user avatar
  • 45
1 vote
2 answers
238 views

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 ...
Pierre Gidel's user avatar
0 votes
1 answer
180 views

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 ...
Mark Green's user avatar
  • 1,362
1 vote
2 answers
175 views

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 ...
The Ratman's user avatar
0 votes
1 answer
80 views

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 ...
Kevin3142's user avatar
1 vote
0 answers
180 views

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 ...
nkbaixiaojie's user avatar
3 votes
1 answer
322 views

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 ...
user1867071's user avatar
1 vote
1 answer
341 views

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 (...
MivaScott's user avatar
  • 1,837
-1 votes
1 answer
58 views

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: ...
user12730187's user avatar
0 votes
1 answer
152 views

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 ...
Dawg's user avatar
  • 37
1 vote
2 answers
217 views

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() # ...
Vulume's user avatar
  • 85
1 vote
1 answer
256 views

I'm coding a python project split into two parts: a PySide6 GUI interface that needs to run on the main thread synchronously, and consequently block it, a playwright virtual web browser (asynchronous)...
Sisyffe's user avatar
  • 304
-1 votes
3 answers
630 views

I want a playwright python mouse UI enable script. so can i can see my mouse to be working in visual for my humanize automation. if any one can provide me any method or js script that will work plz ...
Keep Quit's user avatar
1 vote
1 answer
234 views

I am trying to get all search results (URLs) from https://docs.vgd.ru/search/?v=1. I am using the xpath //a[@class='resultsMain'] to find them. The xpath is valid. My code: import asyncio import time ...
mascai's user avatar
  • 1,692
0 votes
0 answers
125 views

I need to load user profile, extensions and proxy in a single page context. Looks like it is not possible to do so right now using nodriver, any help/suggestion would be appreciated. Thanks Right now ...
Jawad Ahmad Khan's user avatar
0 votes
0 answers
89 views

I've been trying to programmatically extract the original, debundled JavaScript source files behind a web app that uses Webpack bundles and source maps. While Chrome DevTools clearly shows the ...
NoOne's user avatar
  • 19
-2 votes
1 answer
218 views

I am writing a playwright based crawler that encounters various Http Basic Authentication sites. I would like to detect these sites, abort the crawling, and catalog them as sites that I know to be ...
eshalev's user avatar
  • 3,312
1 vote
1 answer
161 views

I'm trying to catch contents of response using Playwright Python, but I'm not sure how to achieve this. Here's my sample code. from playwright.sync_api import Playwright, sync_playwright def ...
maruume's user avatar
  • 11
1 vote
2 answers
1k views

I'm writing a simple Python script using requests.get to scrape data from a website that requires login. The script first checks whether the user is already logged in. If not, it launches a Chromium ...
qiu's user avatar
  • 61
3 votes
1 answer
146 views

I'm writing a Python Flask-based proxy using the playwright library. I've got code that works, but I'd like to make it faster. Here's what I have: @app.route('/fetch/') def fetch_url(): url = ...
Mike Diehl's user avatar
-1 votes
1 answer
164 views

Using 3.9.6 and playwright on MacOS 14.7.5 I am trying to extract the public available intraday stock data from a webpage like https://www.onvista.de/aktien/Airbus-Group-EADS-Aktie-NL0000235190 To ...
Alex's user avatar
  • 45k
1 vote
1 answer
941 views

I am trying to build a python project that uses browser_use to perform tasks, and create video recording for the whole session and screenshots for each step. But I can't find a way to do it. The ...
Terry Windwalker's user avatar
0 votes
2 answers
265 views

By nature, Playwright locator is blocking, so whenever it's trying to locate for an element X, it stops and waits until that element is located or it times out. However, I want to see if it is ...
Lukas Bijaminas's user avatar
1 vote
1 answer
275 views

In some webpages where there is a <canvas> element, when i tried every single method of making the browser bigger, the page bigger... I did found some methods that will make everything big, but ...
MOB's user avatar
  • 29
1 vote
0 answers
208 views

Using Pytest with Playwright, I have below lines to ignore ssl certificate invalid error but its not working. Can someone please help resolve this issue? with sync_playwright() as p: browser = ...
Tushar Likhar's user avatar
1 vote
0 answers
416 views

I'm trying to use Playwright in a Python project on Replit. I installed it using pip install playwright, and then ran playwright install. The download of Chromium, Firefox, and WebKit seemed to ...
Æmmy's user avatar
  • 45
0 votes
0 answers
144 views

I'm doing continuous iteration tests with playwright on a website and I noticed that RSS Memory and Virtual Memory are gradually increasing and no direct method is managing to dissipate the memory ...
Digital Farmer's user avatar
0 votes
1 answer
226 views

I am having trouble using Playwright in my Prefect flow. The flow has to scrape ~800 urls and therefore splits them into chunks of 200 and runs those chunks in parallel. The urls within a chunk are ...
Michael's user avatar
  • 33
0 votes
1 answer
502 views

New to writing tests in playwright with Python, I am currently attempting to uplift our current TypeScript playwright tests into Python Playwright. To begin with I have been experimenting with the ...
PersonaVeratis's user avatar
1 vote
1 answer
360 views

Since I often open the inspector while debugging tests in Playwright, I'd like to know if there's a way to make it open at the bottom when pressing F12 instead of to the right. I know I can change the ...
antoyo's user avatar
  • 12.1k
0 votes
0 answers
60 views

I run all my test on Windows via this command in the root of my tests folder: pytest --tracing retain-on-failure -v -n 4 --dist loadfile -m "my_marks" Everything has always been fine. I ...
Aracknid416's user avatar
1 vote
1 answer
138 views

I want to automatically start the debugging session instead of having it starting as paused. I found out that adding this code makes it work but it feels hackish to me: context.add_init_script("...
antoyo's user avatar
  • 12.1k
0 votes
0 answers
471 views

The following command does run the tests in the browser window, but it does not open the Inspector as per the instructions: https://playwright.dev/python/docs/running-tests#debugging-tests PWDEBUG=1 ...
Testing Singh's user avatar
1 vote
2 answers
508 views

I'm writing tests for my Django project using playwright and StaticLiveServerTestCase. In one test I need to choose two files using input[type=file] field and send them to the server. file_input = ...
avrelum's user avatar
  • 11
-1 votes
1 answer
82 views

This part of the code responsible for the behavior launches the profile, prints a query in the search engine, goes to the query page, but freezes on it and does not do any more actions. Then he closes ...
Matthew's user avatar
0 votes
1 answer
67 views

I feel difficulties to extract the locator for "Accept all" button from usercentrics dialog, the DOM is the following: DOM and UI I am using the following: def user_centrics_accept(driver): ...
Timon Nightingale's user avatar
0 votes
1 answer
220 views

How can I get the playwright browser objects executable_path and version in pytest where I only have a Page object? I can get it from the garbage collector referrers list but it is ugly. (I need it ...
MortenB's user avatar
  • 3,831
0 votes
1 answer
190 views

I'm using Playwright to crawl websites. I have a scraping function that uses Playwright, and implemented a Python object that uses this function to crawl websites in a bread-first search manner. Below ...
Sean's user avatar
  • 3,470
0 votes
1 answer
84 views

I'm starting web scraping with python and playwright. but when I run the code I get an error .how to find type of response data(binary,text,...) and handle the error about convert and save data as ...
Mojsa's user avatar
  • 21
2 votes
0 answers
157 views

I am working on cross-platform tools that use PlayWright. The tools need both the managed browsers and production browsers (seem to be denoted as channels). Installing channels work fine in MacOS ...
Gilgeson's user avatar
0 votes
0 answers
98 views

I have my own Browser class and created a new CLI argument to be able to execute tests with different browsers. main conftest.py def pytest_addoption(parser): parser.addoption('--browser_type', ...
M András's user avatar
  • 369
0 votes
0 answers
39 views

I have a strange error with no description when I try to use async playwright This is a FastApi app and I am on Windows In the docs there is a mention that incompatible with SelectorEventLoop of ...
RheinmetallSkorpion's user avatar
0 votes
2 answers
479 views

I am trying to run Playwright tests within a GitLab CI/CD pipeline against a web service running in a Docker container. My gitlab-ci.yml looks like this: stages: - test services: - docker:27-dind ...
Jasper's user avatar
  • 161
-1 votes
1 answer
121 views

I'm using scrapy and playwright to scrape booking.com in this way I need to click on a button and get ajax response. but when I run my code it returns error : TypeError: Page.locator() missing 1 ...
Mojsa's user avatar
  • 21

1
2 3 4 5
11