Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
320 views

I am following an online tutorial for scraping with Playwright (https://jsoma.github.io/advanced-scraping-with-playwright/). There is one line that uses both await and wait_for(), and I don't ...
user3710004's user avatar
3 votes
0 answers
214 views

I'd like to test my minimal dash app: from dash import Dash, html, callback from dash.dependencies import Input, Output import dash_bootstrap_components as dbc from time import sleep app = Dash(...
Luggie's user avatar
  • 401
3 votes
1 answer
2k views

I have a web page with several components and one of its components is a panel (with a scroll bar) consists of 20 options in total, as given below: Panel When the web page loads, only first 7 options ...
Divya Andrews's user avatar
0 votes
0 answers
359 views

TL,DR; When page is loaded by headless playwright + proxy it works perfectly, every time. When page is loaded by scrapy-playwright, also headless and same proxy, it raises Timeout errors and the HTML ...
Justcurious's user avatar
  • 2,081
1 vote
0 answers
458 views

I am currently on a crossroad whether to use AsyncIo or AsyncIO and multiprocessing. I stumbled upon an external python package called aiomultiprocesswhich simplifies the use of both AsyncIO and ...
AIboi's user avatar
  • 33
0 votes
1 answer
37 views

I wrote a script to log in, navigate to the report page, choose dates, and download the file. However, I’m facing an issue: the date picker always returns today’s date, regardless of the format I use !...
Ahmed's user avatar
  • 25
0 votes
2 answers
101 views

I am creating a webscraper and the idea is to use Selenium, Robocorp and VSCode altogether. I understand that Robocorp already has a file YAML that contains de dependencies of the code, but my doubt ...
fatbee7's user avatar
2 votes
1 answer
361 views

I'm not getting the expected value returned from the below code. from playwright.sync_api import sync_playwright import time import random def main(): with sync_playwright() as p: browser ...
Jacob's user avatar
  • 65
3 votes
1 answer
1k views

Playwright (Python) save a page as PDF function works fine when there's no customisation in the header or footer. However, when I try to introduce a custom footer, the values don't seem to get ...
MaduKan's user avatar
  • 896
2 votes
0 answers
216 views

I use playwright with pytest. Here are content of my coftest.py file and file with tests test_keplr.py. For some reason, method new_page works as expected in fixture context_use_args_async, but fails ...
blnk.off's user avatar
2 votes
2 answers
5k views

So this is my first time with Playwright so I thought to try out the examples only to find none of the work and the errors dont make sense: I have tried all the examples in the docs and on the github ...
ArchaeonSeq's user avatar
1 vote
1 answer
1k views

I am trying to get the current page url in python and playwright. I have tried: from playwright.sync_api import sync_playwright with sync_playwright() as p: browser = p.chromium.launch(headless=...
Ed Newman's user avatar
  • 109
0 votes
1 answer
52 views

I am trying to get the page.url, response.url and response.status from the websites. This is what I am trying: from playwright.sync_api import sync_playwright def scrape_page(url): with ...
JontroPothon's user avatar
0 votes
1 answer
1k views

I am trying to run some script in headed mode from command line but its always running in headless mode. The thing is when I am directly running the class from the pycharm IDE, its successfully ...
Apratim Chaudhuri's user avatar
0 votes
1 answer
136 views

If the element is currently visible, such as the following: I only need to execute page.get_by_text("target_string").click() to complete the click. However, if an element is currently ...
li ki's user avatar
  • 19
2 votes
1 answer
2k views

Recently introduced to test automation I have been using Playwright-Python to create tests for our small team's SaaS portal. Code below has been simplified and rewritten using saucedemo. Our use case ...
peyt1212's user avatar
0 votes
1 answer
867 views

i am not able to use background-color css property in python template using playwright package firstly,i tried apply inline css style="background-color:red", secondly used script tag,using ...
Shital Nerikar's user avatar
2 votes
1 answer
66 views

I am currently working with the Python library Scrapy and I am inheriting from the CrawlSpider so that I can override/define custom Rules. I have defined rules that should block all URLs with auth/ ...
Vlajic Stevan's user avatar
2 votes
0 answers
337 views

I would like to debug E2E tests using playwright (python) in codespaces on github. On Docker, I use "mcr.microsoft.com/playwright/python:v1.45.0" image and the headless operation is ...
Shuji's user avatar
  • 39
5 votes
1 answer
358 views

I'm using playwright for testing web pages. When I use id tag as locator, I can find direct children of tagged div: page.locator('#id_tag > div').all() Now I try to use test_id tag and I need to ...
Vladimir Malchevskiy's user avatar
1 vote
0 answers
508 views

import asyncio import re from playwright.async_api import async_playwright, Playwright, expect async def geochange(playwright: Playwright): chromium = playwright.chromium browser = await ...
Andrey's user avatar
  • 21
2 votes
0 answers
1k views

I have a problem that I have not been able to solve. The DispatcherServiceclass is the class that controls the other two, theoretically it should query an instance of a mongo base, retrieves a cookie ...
sigma5563's user avatar
0 votes
0 answers
132 views

This is a python playwright source code debug problem. I set breakpoints for debugging, but I can't trace the line of code where the browser is launched. Here's the final position in the code where, ...
blues's user avatar
  • 21
0 votes
2 answers
354 views

I have a task where I need to validate up to 1000 bookmark URLs using Playwright. I need to check the validity of these URLs in parallel (ideally 3-5 concurrent checks). I'm using an external Firefox ...
user avatar
0 votes
1 answer
247 views

I used Selenium to successfully log in to a portal. However, when attempting to extract cookies, I received an empty list. Interestingly, I noticed the cookies are visible in the network tab but are ...
Yash Nigam's user avatar
2 votes
0 answers
818 views

I am able to run testcases individually using pytest and the class, function fixture: pytest test_fixtures_class.py. But when I try to run all classes testcases using the pytest command, I get the ...
DevTestSecOps's user avatar
0 votes
1 answer
134 views

I have a code snippet to extract the inputable and clickable node elements (i.e. interactive elements) from the DOM tree of the web pages via Playwright in python. This code almost works properly but ...
Benjamin Geoffrey's user avatar
4 votes
2 answers
584 views

Getting this error: ValueError: The future belongs to a different loop than the one specified as the loop argument. Future exception was never retrieved future: <Future finished exception=...
Basavaraj Lamani's user avatar
1 vote
0 answers
50 views

I am a junior programmer who recently began exploring Playwright in Python (still not familiar with JavaScript). I am attempting to create a ChatRoom robot for non-threatening purposes (i.e., legal, ...
Dan_San's user avatar
  • 21
0 votes
1 answer
422 views

I want to automate the signup process but I'm unable to check the box using Playwright. Each time I click on the checkbox, I am redirected to a new link. In the DOM, when the checkbox is checked, the ...
Ankit Gupta's user avatar
1 vote
1 answer
109 views

My updated code after incorporating feedback (I specified different HTML class for some fields because the output I got did not look quite right: import json import time from playwright.sync_api ...
Anna Quoc Nguyen's user avatar
2 votes
0 answers
926 views

I'm spawning Playwright on my local machine in one codebase, then connecting to it over websocket in another codebase (also on my local machine). The server is being spawned fine, and as it's not in ...
jzw's user avatar
  • 23
2 votes
1 answer
3k views

I am trying to install playwright on my machine running Ubuntu 24.04 but I got this error playwright install ...
Rishu Sharma's user avatar
0 votes
0 answers
55 views

So the spider is running even after it is closed, it keeps on dumping stats 0 items/min 2024-06-03 20:04:11 [scrapy.spidermiddlewares.depth] DEBUG: Ignoring link (depth > 5): https://www.raceentry....
Nekender Shekhawat's user avatar
0 votes
0 answers
332 views

I am trying to get access to the binary data stored in a blob URL within Firefox. The URL is in the format blob:https://basedomain.com/blob-url. I am on page https://basedomain.com/current-page/, ...
Valentin Metz's user avatar
0 votes
1 answer
182 views

async def errback_close_page(self, failure): page = failure.request.meta["playwright_page"] await page.close() def start_requests(self): if not self.start_urls and ...
Nekender Shekhawat's user avatar
0 votes
1 answer
454 views

For Node.js it's mentioned option 'retain-on-failure' (https://playwright.dev/docs/videos) to preserve only videos for failed tests. Nothing similar for the Python. How can it be solved (delete videos ...
FieryCat's user avatar
  • 1,949
0 votes
0 answers
278 views

I have recently installed nodejs, robotframework-browser and python on my system. I have test cases running fine in jenkins but when i am running in my local i am getting an error: ERROR ] Calling ...
testAccount's user avatar
2 votes
0 answers
2k views

I am trying to crawl dynamic content from a website using Playwright in an asynchronous Python environment. However, I keep encountering the error: target page context or browser has been closed. ...
James K J's user avatar
1 vote
1 answer
462 views

In node.js we have https://playwright.dev/docs/test-timeouts, but page does not exist for python, I can use the timeout parameter, but then I have to set it all over: page.goto(url, timeout=6000.0) ...
MortenB's user avatar
  • 3,756
1 vote
0 answers
2k views

I have a really strange problem: starting my program with this headless=False option everything works correctly, pages are opened, buttons are clicked, in a nutshell Playwright does its job. As soon ...
Gabriele's user avatar
0 votes
0 answers
181 views

So In steps file I wrote this code and it just stops. Nothing really happens. It opens and closes down in seconds, I can't understand why? Error: raise Error("Event loop is closed! Is Playwright ...
AbdulRehman Rizwan's user avatar
-1 votes
1 answer
2k views

I tried using the playwright python locator.fill() method on a web element, and its timing out. I found another way to interact with an input element that works. I'm just trying to understand why. ...
jennifer shtaway's user avatar
-1 votes
1 answer
850 views

I have already read the documentation but I'm still kinda confused about get_by_text method in playwright python: I have a small code demonstration that I try to get the selector of the text Sr. ...
ShacoPoggers's user avatar
0 votes
1 answer
426 views

I am trying to click on the load more button until it disappears and all products are loaded. Then I want to click on all individual products to scrape the data I need from the products individual ...
user24820468's user avatar
2 votes
0 answers
119 views

For some testing reasons i need to enter site with one socks5 proxy and then change proxy to another socks5 proxy without closing browser or page. Is it possible on playwright? Don't find any leads in ...
NikGovn's user avatar
  • 51
1 vote
1 answer
2k views

Is there a difference between expect(locator).to_be_visible() and locator.wait_for()? Should I prefer one over the other? I've looked up the __doc__s: wait_for: Returns when element specified by ...
AXO's user avatar
  • 9,226
0 votes
1 answer
492 views

I am trying to find every message that contains "Hello team , here is a new report task:" text in a website and hover them one by one to be able to click another button. page.get_by_role(&...
Musa ÖZKAN's user avatar
0 votes
1 answer
3k views

I want to get the tagname tagName of element selector selected by get_by_text() method for example : element = page.get_by_text("example", exact=True)
ShacoPoggers's user avatar
1 vote
1 answer
568 views

When I wait for a response from an API call that is made on a page, PlayWright never gets the response. I've seen this in several attempts to wait for a response on different pages but here is some ...
Stephen Graham's user avatar

1 2
3
4 5
12