Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
371 views

I'm trying to learn Playwright, so I was checking Playwright Inspector concept and written below piece of code. In Pycharm terminal I run the below i.e. set PWDEBUG=1 and use pytest PWDEBUG=1 pytest -...
user166013's user avatar
  • 1,551
1 vote
1 answer
418 views

We use enterprise anchor google image reCaptcha in our website and while automating it with our test framework(playwright and python) with this plugin, for the first few runs it's working but then ...
Yuvaraj K's user avatar
0 votes
0 answers
100 views

Am trying to develop a code that uses browser-use and playwright to open a website, and apply on jobs. I have automated the login and search and only want AI to kick in when the code has searched the ...
Jay 's user avatar
  • 1
1 vote
0 answers
183 views

Background: I have a chromium user-data folder which contains a logged-in Instagram account. I want playwright to launch using persistent context from the user-data folder, open Instagram, and take a ...
Asmit Karmakar's user avatar
1 vote
0 answers
51 views

I am trying to play around playwright/Pytest API testing. I need to read data from xlsx file and returning dictionary in the form for TC_NAME,BODY,Result. I have used Custom decorator method to make ...
AutoTest's user avatar
-1 votes
1 answer
240 views

#!/usr/bin/env python3 from playwright.sync_api import sync_playwright from bs4 import BeautifulSoup import json from pathlib import Path def scrape_urlhaus(): with sync_playwright() as p: ...
pippen's user avatar
  • 1
0 votes
1 answer
713 views

I am writing web automation to download a file by browser-use web automation tool that uses LLM as an AI Agent. The download files feature isn't supported by the Browser-use as a built-in ...
Benyamin Jafari's user avatar
0 votes
0 answers
141 views

I am using a test script given in browser-use examples, but currently I am getting following error from browser-use agent: '[WinError 5] Access is denied'. My code looks like this: import csv import ...
Abhay Bhardwaj's user avatar
2 votes
3 answers
187 views

I tried using scrapy playwright to scrape few contents from this website: https://www.scrapethissite.com/pages/ajax-javascript/. I have added the html code which I was trying to scrape: html code I ...
Nitish K's user avatar
1 vote
1 answer
1k views

I'm using browser-use for web automation. This package uses playwright under the hood. I realized it is not possible to load an extension in incognito mode, so I must use playwright.chromium....
Benjamin Geoffrey's user avatar
2 votes
1 answer
75 views

I'm making a bot using Python playwright which works but at random times random commands will just be skipped or not work leading to a timeout on the next command. from multiprocessing.connection ...
Jackson Taylor's user avatar
5 votes
1 answer
6k views

I have this setup File 1 from playwright.sync_api import sync_playwright class A: def __init__(self,login_dict): self.start = sync_playwright().start() self.browser = self.start....
pronron's user avatar
  • 53
0 votes
0 answers
175 views

I'm creating a test suite for E2E tests that validate network requests while navigating and interacting with a website. I'm using Playwright with async and using conftest.py to set up the browser (...
Matt's user avatar
  • 27
1 vote
1 answer
319 views

I try to use Playwright and python code to get by code some free reports. With the following code and an existing chrome debug window, I try to get the report but I get a kind of temporary file not ...
Scnes de Ouf 's user avatar
0 votes
1 answer
419 views

I'm using Sync API and Python for Playwright testing, and I have a python variable that is my locator, already found. I need to know what type of HTML element this locator is, because I need to do ...
Aracknid416's user avatar
0 votes
1 answer
497 views

I want to fill a two-steps login form with Playwright. The Playwright execution is controlled by a library, so I cannot change the execution context. To fill my form, I can only use some Javascript ...
azmeuk's user avatar
  • 4,666
0 votes
0 answers
219 views

I'm trying to fetch URLs from a TikTok user page for a research purpose. It works fine with headless=false, but when I set it to headless=true, it triggers a captcha verification. Any ideas on how to ...
udd_ish's user avatar
  • 97
0 votes
0 answers
117 views

I’m new to Scrapy, and I’d like to load a page using a proxy. When I don’t use a proxy, the response works fine, and I can see my test outputs with print(). However, when I use a proxy, I encounter ...
Kim's user avatar
  • 1
2 votes
0 answers
147 views

I'm trying to get playwright to be as close to a regular chrome browser instance as it can be, while also speeding up the loading by removing unneeded requests for things like images. While doing so I ...
soccerstar955's user avatar
3 votes
1 answer
992 views

I am trying out Scrapy Playwright for the first time and following examples online. I am getting the error "ModuleNotFoundError: No module named 'scrapy_playwright.middleware'" when I run ...
Didi's user avatar
  • 481
0 votes
0 answers
29 views

Hello I need to make a conditional statement as follow with python if (expect(page0.get_by_text("text expect")).to_be_visible()): page0.get_by_role("button", name="Delete&...
Nawel Mele's user avatar
0 votes
1 answer
196 views

When I try to use a dictionary as parameter in a fixture I get this issue: @pytest.fixture(scope="session") def user_create(hp_authentification_page,request) -> None: page ...
Nawel Mele's user avatar
0 votes
1 answer
173 views

I've got a web app that I built first with Flask, then totally rebuilt with Django, to get advantage of the admin interface. It builds a flyer for a kids football match, using the context to overlay ...
bytejunkie's user avatar
  • 1,043
-1 votes
2 answers
330 views

I would like to know if there is a way to get all of the child elements for an HTML Form. For example, HTML: <form> <input type="text" name="name"> <input ...
Alex Güemez's user avatar
0 votes
0 answers
70 views

I am struggling to see how can a use a variable inside a fixture that will be set inside a test. Let me show you with "code" what I mean: Here is the fixture I want to use with ...
Nawel Mele's user avatar
0 votes
0 answers
55 views

I have the following python code: main.py: import pytest import re from playwright.sync_api import Page, expect from time import sleep TIMEOUT = 5000 # 5 seconds # Helper function to send a message ...
FotisK's user avatar
  • 1,187
0 votes
1 answer
2k views

I'm attempting to do an intro to playwright tutorial and can't get any headful browser to open. I'm working on a Windows 11 computer in jupyter notebook (a requirement for the program I'm in) and all ...
user28348051's user avatar
1 vote
1 answer
315 views

I am trying to write a simple scrapper using Playwright Python library Here is a basic example how I use it: from contextlib import contextmanager from playwright.sync_api import sync_playwright ...
user avatar
0 votes
1 answer
1k views

I'm using Playwright to automate browser interactions, and would like to create a visual effect where the mouse leaves a trail as it moves randomly across the screen, mimicking natural cursor movement....
Aniket's user avatar
  • 197
1 vote
1 answer
252 views

I'm trying to search for specific names within the HTML of a website using Playwright in Python. I have a list of lowercase names (names_to_find), and I want to match them against names in the HTML ...
Sofía Fayó's user avatar
1 vote
0 answers
159 views

What is the right way to add custom cookies (key-value pairs) to a request executed via Crawlee? Lets say website requires custom-cookie for auth purposes (cookie sid=1234), how to add this cookie to ...
soxl's user avatar
  • 11
1 vote
2 answers
694 views

I use Playwright to partially automate my tasks but sometimes I need to navigate manually to get to the info I require. As such, I need to download files manually as well, but there doesn't seem to be ...
weasel's user avatar
  • 584
0 votes
1 answer
1k views

I'm unable to exit a playwright loop cleanly on KeyboardInterrupt/Exception. It is called by subprocess() in our CICD and always fails due to this garble when the system sends <ctrl+c> after ...
MortenB's user avatar
  • 3,756
0 votes
2 answers
434 views

Using Python Playwright and Page Object Model Scenario: Clicking a link opens a new tab. Rest of the oprations needs to be performed in new page. Without Page Object model: I was able to accomplish ...
Subbu's user avatar
  • 63
1 vote
1 answer
263 views

I'm using Playwright to interact with a webpage containing a form, you can find the full form's HTML code here. The element of interest is the following: <div class="form-ajax-success alert ...
GTP95's user avatar
  • 33
2 votes
0 answers
144 views

I tried to upload a mp4 files, but it's not working. When I tried changing the file from mp4 to mp3, it worked. I also tried using Firefox and Chrome browser to upload mp4 files, and it worked. ...
Jerome Culcul's user avatar
4 votes
2 answers
429 views

I'm using playwright python and the usage of PKS12 certificates seems not be working properly. We try to follow the playwright documentation and this example from stackoverflow too, but none of these ...
Iron Banker Of Braavos's user avatar
0 votes
1 answer
960 views

coming from Java world and trying to use Python with the playwright module for testing. I'm using Python 3.13 and got a dependency error trying to install playwright using pip and a requirements.txt ...
joeglin2000's user avatar
0 votes
0 answers
100 views

I am scraping a page and i want to save each link in its own dict key but i do not know how to do it this the complete code download_info_list = [] download_info = {"nombre": [], "juego&...
karen's user avatar
  • 1
0 votes
2 answers
1k views

I've 2 questions related to python playscript when launching a browser. Looks like I can use def test_has_title(page: Page): page.goto("https://my-url.com") Another way is with ...
Ram's user avatar
  • 443
0 votes
0 answers
293 views

I am very new to playwright and I am trying a simple POC where I open a URL, enter user and password and click LOGIN button. Then checking if a particular title is present or not. This is my simple ...
Ram's user avatar
  • 443
1 vote
0 answers
142 views

self.browser = self.playwright.chromium.launch( headless = False, slow_mo = 2000, devtools= True, args = [ r"--...
Eva's user avatar
  • 11
0 votes
1 answer
5k views

I'm trying to crawl https://kick.com/browse/categories with playwright which has infinite scroll. I've tried evaluating the below js code and wait for an extended period for loading. I'm turning off ...
Ginni Song's user avatar
1 vote
1 answer
229 views

I am crawling https://kick.com/browse/categories where every time you scroll it loads new cards of a category. I have tried multiple methods using playwright but none of them worked. Would appreciate ...
Ginni Song's user avatar
0 votes
0 answers
244 views

I have a Playwright test that confirms an e-commerce site's checkout process works, which terminates in clicking a Paypal button, logging into Paypal, and clicking submit payment. In headed mode, it ...
Cerin's user avatar
  • 65.6k
1 vote
1 answer
291 views

Is there any way to capture/intercept the temporary re-directs using playwright and add custom headers? I have a page in which the initial request will give response with status code 303 that will ...
Ashok Kumar's user avatar
2 votes
1 answer
326 views

My goal is to automate a task on a website that requires login. So I want to login once manually and let the automation run from there. I tried using CRD but when my code runs, it opens a new window ...
Adi's user avatar
  • 4,238
0 votes
1 answer
160 views

from playwright.sync_api import Playwright, sync_playwright with sync_playwright() as playwright: chromium = playwright.chromium browser = chromium.launch() context = browser.new_context()...
Swelan Auguste's user avatar
0 votes
2 answers
221 views

I am looking for the count of pages where search term "indieea" is found. Visited this page: https://www.google.com/search?q=%22indieea%22 Goto the last page in search results. You get this ...
shantanuo's user avatar
  • 32.6k
0 votes
1 answer
3k views

I am trying to perform google search using playwright. But getting this error: playwright._impl._errors.TimeoutError: Page.fill: Timeout 60000ms exceeded. Call log: waiting for locator("input[...
shantanuo's user avatar
  • 32.6k

1
2
3 4 5
12