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

I'm trying to do some automated testing in Dynamics 365, whose tables look like this . Each 'cell' here is an <input> element. Inside that element is a link of some kind that directs you to ...
LiamJC's user avatar
  • 101
1 vote
1 answer
2k views

I just learnt playwright python and wanted to know how one can print the results of a page to the terminal. I have tried printing to the terminal in the playwright function but it does nothing. Also ...
reactoimpact's user avatar
2 votes
2 answers
1k views

I want to scrape the words which reside in the <li> elements. The results return an empty list. Are they resided within a frame because as I can see they are not within any <iframe><\...
Andrea's user avatar
  • 388
0 votes
0 answers
868 views

i get this error requests.exceptions.SSLError: HTTPSConnectionPool(host='ipinfo.io', port=443): Max retries exceeded with url: /json (Caused by SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has ...
abdelrehman99's user avatar
1 vote
1 answer
1k views

I am trying to scrape tweets from twitter with Playwright. The problem I am facing is - after I scroll down with "page.mouse.wheel", I can only get the tweets("page.content"), from ...
ktm root's user avatar
1 vote
0 answers
629 views

I'm using scrapy to access a response element. Since this element is hidden, it returns an empty object. How can I make this object visible? This is the div class I like to access or click on it. <...
Maciek's user avatar
  • 21
0 votes
1 answer
620 views

I need to extract the text from the second doctype using playwright (mostly) or another tool. (python only) Can anyone help? <!DOCTYPE html> <html data-lang-tag="" lang="ru&...
Nik's user avatar
  • 19
-1 votes
1 answer
1k views

I'm trying to click a button within an iframe that has a dynamically generated id. This is the HTML of it: <iframe frameborder="0" src="Container.aspx?type=topgen&amp;menu_id=...
Paul's user avatar
  • 1
0 votes
1 answer
2k views

I am trying to open multiple tabs from the same browser using the mentioned playwright code. The browser I'm trying to use is Firefox. Firefox is opening multiple windows instead of tabs. With Chrome ...
Raisul Islam's user avatar
3 votes
1 answer
3k views

I'm trying to open a specific chrome profile using playwright python using the following code from playwright.sync_api import sync_playwright with sync_playwright() as p: # browser = p.chromium....
Shaheen's user avatar
  • 71
1 vote
0 answers
794 views

I need to modify the request body that is sent by the browser, i do it like this: async def handle_uri_route(route: Route): response = await route.fetch() response_json = await response.json() ...
kshnkvn's user avatar
  • 986
0 votes
1 answer
2k views

I need to handle request with certain url and im trying to do it like this: await page.route("**/api/common/v1/play?**", handle_data_route) But it also handles a url like this: api/common/...
kshnkvn's user avatar
  • 986
3 votes
1 answer
1k views

I'm trying to create a pytest fixture that will allow all my tests to reuse a single authenticated context. The goal is for the fixture to run once, yielding a context. Then the other tests can just ...
patoski's user avatar
  • 79
1 vote
1 answer
396 views

The launch takes place on a VPS. So, if you run the code without cron-a, then everything is OK, the sites are parsed. When I add cron, everything flies into a heap with errors. Here is what my log ...
Nik's user avatar
  • 19
3 votes
3 answers
11k views

I've struggled a while now trying to download a pdf in Python Playwright which is rendered from a php web page (not included in this example as it has sensitive code - instead I've included a link to ...
NanoNerd's user avatar
  • 142
1 vote
1 answer
1k views

Context: Playwright Version: 1.29.1 Operating System: Windows Python version: 3.8.2 Browser: Chromium Describe the bug This error happens in some specific situations, usually when directly or ...
Pedro Pessuto's user avatar
3 votes
1 answer
344 views

I have following code to download something (in this example it's a video). from playwright.sync_api import sync_playwright import func import os, time, shutil import requests from tqdm.auto import ...
Daniel Cunha's user avatar
0 votes
2 answers
6k views

Currently, I can send the user-agent from playwright as well the viewport sizes. But i want to send all the headers informations like accept, accept_encoding, accept_language,referer, cookies,etc. I ...
NewbieProgrammer's user avatar
0 votes
1 answer
238 views

I am new to scrapy and python I am scrapping data from Aliexpress.com with playwright method and it returns (referer: None): Here is my code class AliSpider(scrapy.Spider): name = "aliex&...
Sarfraz's user avatar
  • 99
6 votes
4 answers
14k views

I have a problem starting Playwright in Python maximized. I found some articles for other languages but doesn't work in Python, also nothing is written about maximizing window in Python in the ...
bbfl's user avatar
  • 375
1 vote
2 answers
6k views

How can I use Playwright to click on the button in the image, identified by its class name? It's important to note that the button's name changes daily, starting with 'Collect 10 Candies' and ...
John Smith's user avatar
1 vote
2 answers
3k views

I am Scraping with scrapy-playwright an ecommerce site where when I scrap with headless: True, I am getting 403 error but, with Headless False I am getting 200,I even tried randomizing User agent ...
aditya narayanan's user avatar
0 votes
0 answers
330 views

I have a table in my web page. Let us assume that one of the columns has a very long text, and the column is at its default width. expect(self.page.locator('text=ABCDEFGHIJKLMNOPQRSTUVWXYZ')).\ ...
Tal Angel's user avatar
  • 1,846
-1 votes
1 answer
1k views

I have a interface which has a button that closes the playwright context and browser, but when i close it, a lot of exceptions (because the playwright browser and context were closed during some ...
shiro amurha's user avatar
0 votes
1 answer
1k views

I have an Input element with value like '123 456'. How can I validate that the Input element contains '123' using an Expect? input_locator = 'input[id="edition"]' expect(self.page.locator(...
Tal Angel's user avatar
  • 1,846
0 votes
1 answer
426 views

I am currently experiencing a problem when trying to run a scrapy crawl in my dedicated virtual environment. Indeed it returns me the error quoted in the title of this topic. So I start by checking ...
Exramas's user avatar
  • 15
0 votes
1 answer
3k views

I have some Chrome profiles in which I have my different accounts logged in. I'm writing a multi-threaded script that will run each profile using launch_persistent_context so that I'm already logged ...
stuckoverflow's user avatar
1 vote
0 answers
258 views

Is there a way to get SSL certificate details from web UI using selenium or playwright? I know I can get them using openssl commands but I am looking to get from UI using selenium or playwright.
Lalitha Padubidri's user avatar
1 vote
1 answer
4k views

I have multiple pages to scrape with Playwright, but my script keeps failing with playwright._impl._api_types.Error: Navigation failed because page was closed!. Here is my code: urls = ['http://www....
Richard's user avatar
  • 66.1k
0 votes
1 answer
480 views

I am trying to scrape a website with multiple pages with the same url using scrapy-playwright. the following script returned only the data of the second page and did not continue to the rest of the ...
Kfir Ben simon's user avatar
0 votes
4 answers
4k views

I'm implementing a python web scraper using Playwright and I'm interested in saving images given their urls (i.e. each url contains and only contains the corresponding image). However, I have trouble ...
duheng's user avatar
  • 1
0 votes
1 answer
5k views

I have written a web scraper which needs to scrape few hundred pages asynchronously in Playwright-Python after login. I've came across aiometer from @Florimond Manca (https://github.com/florimondmanca/...
NanoNerd's user avatar
  • 142
1 vote
1 answer
1k views

I'm using Playwright in a Jupyter Notebook to obtain building construction years from a property appraiser's website. Some web pages, like this one, have multiple buildings' data viewable only after ...
Adam's user avatar
  • 335
0 votes
1 answer
1k views

CONTEXT: I'm just a newbie in web scraping. I was trying to scrape a local e-commerce site. It's a dynamic website so I am using scrapy-playwright(chromium) with proxies. PROBLEM: It was running ...
Sadik's user avatar
  • 1
-1 votes
1 answer
406 views

My server is running on Ubuntu 22.04.1 LTS and I have a python flask app which runs perfectly with an active virtual environment (source bin/activate) using wsgi [python 3.10]. While all my other ...
Farrokh Rostami Kia's user avatar
0 votes
0 answers
140 views

I am scrapping amanzon.co.in using scrapy-playwright. I am able to extract description, rating and price of desired item. However for going to next page I want to extract href for Next Page button at ...
Aman Khanna's user avatar
5 votes
3 answers
4k views

Let's say I've requested a page and it's fully loaded. Is it possible to save the images from the rendered/loaded page without sending another request for the image? This would be to avoid just ...
Zach Johnson's user avatar
  • 2,255
0 votes
1 answer
3k views

I'm using Playwright to access and interact with a website and it was going perfect till I found myself in the page where I can't interact any button ou search bar to apply a filter. I can use ....
Mr_Spectre59's user avatar
0 votes
1 answer
737 views

I have written a Playwright async function which extracts laboratory results from our lab information system. However, I struggle to get rid of the following error despite "await"-ing every ...
NanoNerd's user avatar
  • 142
3 votes
2 answers
7k views

I am trying to use Playwright to get contents of the open shadow root element which looks like this. <some-element> #shadow-root ABC </some-element> Here #shadow-root contains text ...
Termos's user avatar
  • 704
0 votes
1 answer
2k views

try: with sync_playwright() as p: driver = p.firefox.launch(hedless=headless, proxy={ "server": 'fa****y.com:10000', '...
Sabir's user avatar
  • 1
1 vote
1 answer
2k views

there is a website (company website - cant share login) which has a search box containing locations i was using fill to type in a randomly selected location from a dictionary playwright fill in the ...
noob's user avatar
  • 33
-1 votes
1 answer
953 views

As described in the title, I'm trying to find a fillable field on a webpage whose placeholder contains the word 'name'. Examples of ones I'd like it to select are ones with placeholder text 'First ...
Arpit Ranasaria's user avatar
-1 votes
1 answer
2k views

everything was running fine the code opened a website and carried out some functions i took a 60 min break and now playwright refuses to do even the most basic function it loads the website and times ...
noob's user avatar
  • 33
1 vote
2 answers
2k views

I am trying to scrape this site https://franchisedisclosure.gov.au/Register with playwright and the url doesn't change after you click on the next button. How do I solve this pagination problem? Here'...
Chiedozie Agwu's user avatar
0 votes
1 answer
1k views

Using Playwright, the code below successfully prints the title of stackoverflow.co. This works because the Xpath query (//title) produces only ONE result (there is only one title). page.goto("...
Melter's user avatar
  • 5
2 votes
1 answer
1k views

I'm getting a Executable doesn't exist at /root/.cache/ms-playwright/chromium-1019/chromium-1019/chrome-linux/chrome error on Google Cloud Run whenever I try to install Playwright for Python, and I ...
damiantaubaso's user avatar
0 votes
1 answer
1k views

I'm trying to scrape a site that reports internet service availability by address. Addresses can be selected from a list created for a specific postcode. After an address is selected, a table is ...
user676952's user avatar
0 votes
1 answer
2k views

How to get a Class name using playwright and pyton? I tried that but without success. It could also be the color that is contained in the css page.locator('xpath=//*[@id="__next"]/div[1]/div/...
Mateus Barros's user avatar
2 votes
1 answer
3k views

My code is quite simple: from playwright.sync_api import sync_playwright pw = sync_playwright().start() firefox = pw.firefox.launch(headless=True) context=firefox.new_context() page= context.new_page()...
PythonSmellsLikeCheese's user avatar

1
5 6
7
8 9
12