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,219
questions
0
votes
0
answers
12
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
13
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
28
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 ...
0
votes
1
answer
13
views
Trouble with Playwright RunAndWaitForPageAsync / WaitForURLAsync and Chrome's "Always show full URLs"
When I use either of these lines of code, I get the same problem. It only works if the Chrome Browser setting "Always show full URLs" is ticked / on.
await page.WaitForURLAsync(url, new ...
0
votes
0
answers
18
views
How to remove headers like Authorization while using playwright apiContext
My project implemented the Authorization as a fixture so that all test modules can work as a logged-in user.
There is a function to upload a file to s3, which actually consists of a few steps:
...
0
votes
0
answers
11
views
Auth0 - How can I generate an access token specifically for Playwright tests?
My project relies on the @auth0/auth0-react package for authentication. In my end-to-end Playwright tests, I need to programmatically obtain the access token to interact with my app's REST APIs. Any ...
0
votes
0
answers
21
views
Testkube helm deploy - setting artefact retention on minio to X last?
Hi is there a way to set up retention on testkube to only save few recent one? I am creating test with playwright, and with option to record video, they pretty quickly eat up space on pvc.
I checked ...
0
votes
0
answers
7
views
Playwright (TS) - API tests error on a '401', but only within one spec file
So I have a set of 12 spec files with various tests. All of them are working as expected, par one file that returns a 401 error on all requests doe within it. All of my tests get the api key from the &...
0
votes
0
answers
17
views
Playwright- Execute tests in headless via CMD when project configured as headed
I have a Playwright project that it's playwright.config has headless: false configuration.
I'm trying to execute a specific group of tests in headless mode via CMD:
npx playwright test -g "@...
0
votes
1
answer
18
views
Error on imports when trying to use SHACL with Playwright
I am trying to do some API testing in Playwright with SHACL, and the imports
import { test, expect } from '@playwright/test';
import rdf from 'rdf-ext';
import N3Parser from '@rdfjs/parser-n3';
import ...
-1
votes
2
answers
56
views
Attempting to click form button for element to be visible, enable and stable
I am trying to click on submit button using Playwright, but can't make it work. I have following html code.
<table>
<tr>
<td id="ct100" onscroll="scollPosition(...
0
votes
0
answers
29
views
No longer able to dynamically import JSON files in Playwright
It used to be possible to dynamically import JSON files in Playwright, however, I recently updated all my NPM packages and I now get the following error.
TypeError: Module "file:///c:/mouse/tests/...
0
votes
0
answers
19
views
Playwright can annotations be seen in Azure pipeline test reports
I'm using annotations to document when a test should fail because of a known bug. How can I get the information to show in Azure pipeline reports, in a similar way to how they are shown in html ...
0
votes
0
answers
18
views
Installing Python on Node/Playwright docker image?
I have been using Playwrights node docker image, defined here: https://playwright.dev/docs/docker
This includes all the browser dependencies/etc.. for the node version of docker. This has worked fine ...
0
votes
0
answers
24
views
Playwright authentication state gives me a cookies empty array
I have used Playwright to enable the authentication state (shared account in all tests) but I got this result:
{
"cookies": [],
"origins": [
{
"origin": &...