Questions tagged [playwright]
Playwright is a framework for web testing and automation. It allows testing Chromium, Firefox and WebKit, Chrome, and Microsoft Edge with a single API. Playwright's API is similar to Puppeteer, but with cross-browser support and Python, Java, and .NET bindings, in addition to Node.js.
playwright
3,222
questions
0
votes
0
answers
9
views
Playwright component test ct-react with problems with AWS-SDK (AWS$1L.STS.prototype)
everyone! I'm trying to use @playwright/experimental-ct-react to test a component called Footer.js which executes a function which uses aws-sdk.
When I try to execute the tests with the command
npm ...
1
vote
1
answer
29
views
Why do my Python Playwright test work in Firefox but fail in Chromium?
These tests works in Firefox but fail in Chromium:
def test_cnn_sport_page_title(page: Page):
page.goto('https://www.cnn.com/sport')
expect(page).to_have_url('https://www.cnn.com/sport')
...
0
votes
0
answers
13
views
Running pytest playwright script in headed mode from the command line
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 ...
1
vote
0
answers
30
views
Having trouble with basic rendering of a full javascript page with playwright to create a PDF
Just trying to do a pretty basic scrape to PDF using Playwright in python. The coursera pages give me a hard time though.
Not all of the page is rendered for some reason and I only get the basic ...
-2
votes
0
answers
31
views
Infinite Scrolling with Playwright in Python [closed]
I am scraping a website. This is just for my own entertainment and education and to keep my mind sharp as I age in retirement. I am not stealing information from the website to give to others and I ...
0
votes
2
answers
62
views
Check if element contains any text [duplicate]
In my test case there is an element that should be checked if it contains any text and it's not empty, and if it's empty fail the test.
I've tried to use toHaveText without a string like so:
await ...
0
votes
1
answer
24
views
Scraping all pages using Scrapy-Crawler & LinkExtractor-Rules
I am trying to scrape dockerhub.com with the scrapy-vertical approach using the Crawler and i need to define a rule which gathers all pages with the following pattern:
https://hub.docker.com/search?q=...
0
votes
1
answer
14
views
not being able to use storageState in playwright when navigation the website
I am trying to use playwright setup and pre-authenticated users to run few tests, yet I faced an issue when the storage file is set but not being used by playwright, here is the codes that I used:
...
0
votes
0
answers
8
views
Playwright C# .NET - IntersectionObserver, Google Analytics & ScrollIntoViewIfNeededAsync does not fully scroll in mobile viewport
So, I've got a very interesting issue when it comes to some Playwright tests.
I am trying to automate a Google Analytics event that gets triggered based on the IntersectionObserver in my company's ...
1
vote
1
answer
21
views
In the Playwright web automation framework, is there a method that can help me handle elements that require scrolling to be clickable?
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 ...
0
votes
0
answers
21
views
Can't able to set particular section at the bottom of last page of pdf
Can't able to set particular section at the bottom of last page of pdf, i am using playwright package for template in python,i am not able to show this section bottom of the page it shows at the ...
1
vote
0
answers
34
views
How to getProperty in Playwright
I need to get a property from the element.
How do I do that in playwright?
I can do getAttribute but I don't see an option for getProperty?
0
votes
0
answers
17
views
Playwright Test runner struggles with clicking combobox elements and opening option lists. Inconsistent behaviour
Video1: https://drive.google.com/file/d/1BYTFZ5O_0dwTKAuS3siqiQseh8LcWYmH/view?usp=drive_link
Video2: https://drive.google.com/file/d/1fyBVhQM2brEAdgJQNeRcLRtJNfXGnNMq/view?usp=drive_link
Video3: ...
0
votes
0
answers
25
views
When using a custom Playwright-Python browser context, how to take fail case screenshots using Pytest?
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 ...
0
votes
0
answers
44
views
can't able use background-color css in playwright
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 ...