Questions tagged [playwright-python]

Microsoft Playwright is a web automation library comparable to Selenium. This tag refers to the Python port of the library.

Microsoft Playwright is a web automation library comparable to Selenium. Originally a Javascript project, this is now also available in Python.

Related tags:

365 questions
0
votes
1 answer

Playwright Python: Get Attribute inside Iframe

I'm trying to get 'src' of iframe element using Playwright and Python. Here is the HTML I'm trying to access: my goal is to grab 'src' attribute. here is what I've…
WillX0r
  • 53
  • 6
0
votes
1 answer

How to fix that missing dependencies when run the python+playwright in the redhat

I am a newbieon the linux. I got a mistake when I run my python with playwright in the Oracle Cloud. How should I install the missing dependencies ? Thanks for your help. system info: Playwright Version: [ 1.27.1 ] Operating System: [ Red Hat…
RR l
  • 15
  • 6
0
votes
0 answers

Playwright GRID (experimental Grid support) - How to use?

I am able to start the grid server and able to register the agents. But below code is failing with 400 error. Exception in thread "main" com.microsoft.playwright.PlaywrightException: Error { message='WebSocket error: Unexpected server response: 400…
0
votes
1 answer

Is there a way to handle dynamically loaded selectors with clicks on pages in scrapy-playwright?

I have a use case like this. Suppose if I crawl a website abc.com using scrapy playwright the page it loads are of 3 different types of pages like page1->#selector1 page2->#selector2 page3->#selector3 and it changes dynamically there is no…
0
votes
1 answer

Automate Tokens base login in Playwright. Java

Scenario : To login to the application, need to enter the username and token sent on register email id. How can we automate above scenario in playwright using java language. Thank you in advance.
0
votes
1 answer

How to get a list of all links from a dynamic web page?

I'm trying to scrape this page: https://workspace.google.com/marketplace/search/word I tried PhantomJS+BeautifulSoup (failed), then Playwright to scrape the whole content of the ee the links to the extensions. Do they get generated only when the…
0
votes
0 answers

installing playwright dependencies for AWS ECR

I have a small RestAPI service that uses playwright to scrape data and return it to the client. Locally everything works perfect, also with docker. My goal is to upload it to AWS ECR and use the image in a lambda function. This is my…
0
votes
2 answers

Why did a plawright-python app run in Docker failed? Headless=False?

I have a small application that uses fast-api and playwright to scrape data and send it back to the client. The program is working properly when I'm running it locally, but when I try to run it as a Docker image it fails with the following…
0
votes
1 answer

Installing playwright in Docker image fails

I've built a small fastapi app that scrapes some data from various sites and returnes it. whan I'm running it locally it works well, but when I try to run it as a Docker image the build fails with the error: #8 3.356 ERROR: Could not find a version…
0
votes
1 answer

Playwright-python gives error for sync_playwright()

I've run into a weird issue with python-playwright on my pc. Just yesterday everything was working fine, but now playwright throws errors at me for running with sync_playwight() as p:. This is what i narrowed the error down to: from…
user15055153
  • 25
  • 1
  • 5
0
votes
0 answers

error on use " from playwright.sync_api import sync_playwright"

OBSERVATION INICIAL: Python 3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32 MY windows is 64bits, but on python consol show win32 for some reason. Guys, I'm studying web automation with python, but I'm…
0
votes
1 answer

Using proxies with playwright in python

I'm using playwright to extract data from a website and I want to use proxies which I get from this website : https://www.proxy-list.download/HTTPS. It doesn't work, and I'm wondering if this is because the proxies are free ? If this is the reason,…
0
votes
2 answers

Using Playwright with CSS that contains nth element

I'm trying to find an element with a specific nth index as a CSS expression. How can I fix my code without changing the CSS expression? try: expect(self.page.locator('div[class="some-class"]:nth(3)')).\ …
Tal Angel
  • 1,301
  • 3
  • 29
  • 63
0
votes
1 answer

Spider.start_requests() takes 1 positional argument but 3 were given

I am trying to scrape a website using the crawl spider. When I am running crawl on command line I am getting type error - start_requests() accepts 1 positional argument, 3 were given. I checked the the middleware settings where def…
0
votes
1 answer

How do I ensure there are table rows, and iterate with Playwright

I am working on an automation script for a third-party website which manages credentials for a program. Within the script, I can successfully log into the website and place a search variable within the [Search] field and filter the results on the…
swolfe2
  • 429
  • 1
  • 6
  • 24