playwright Questions
5
I'm using react-select in my application for implementing CSS styleable dropdowns. Also, I'm using Playwright for automatic testing want to be able to select an option from one of these dropdowns u...
Trephine asked 1/11, 2021 at 10:0
3
I'm using playwright and vscode, especially the "debug test" function which pops up a real browser window to run the test. When it fails the test auto closes, how can I make it not auto c...
Blench asked 1/5, 2022 at 22:19
6
I'm trying to log the network calls in the browser. For my use case I require the browser to be in an open state and should be closed only with the scripts. I am currently using the page.pause() fu...
Incorrupt asked 1/6, 2022 at 13:9
4
I am using the C# Language Bindings of Playwright.
Example HTML:
<select id="txtType" name="Type" class="form-control">
<option>Blog Posts</option>
...
Vomiturition asked 11/2, 2021 at 13:29
4
I'm using Playwright to upload a file and download the result. When the inputfiles are large, and it takes a long time to process I get a timeout from playwright; it takes to long for the button &q...
Sacerdotal asked 6/7, 2022 at 11:4
6
Solved
I have a test config file (playwright.config.ts) with many projects.
Usually, I want to test several different browsers.
However, when I'm building a test, I want to only test with a single browser...
Narrate asked 23/6, 2021 at 12:38
3
Solved
I have multiple test files in a specific folder with extension spec.ts. How I can run a particular file with Playwright?
Currently for configuration is set as the test folder and will run all files...
Cranford asked 23/12, 2021 at 10:25
2
Solved
I have a scenario here:
Click element A (a button), trigger element B (say, a div) to appear. However due to multiple factors, clicking might fail to trigger the event. The reason could be clicking...
Ulland asked 1/2, 2023 at 20:59
5
Solved
I want to check if the text QUEUED appears on a website. I tried the following commands
await expect(page1).toContainText('[QUEUED]');
await expect(page1.locator('span')).toContainText('[QUEUED]');...
Psychoneurotic asked 14/11, 2022 at 7:44
4
I have been stuck with this for a bit. I need to test a website and I need to post info in order to test if it appears on the page.
What I have so far is this
(async () => {
const browser = aw...
Annulet asked 10/6, 2020 at 1:40
4
Solved
This is my first time using playwright and I can't figure out how to wait for requests and validate responses.
I've been using cypress for a quite a long time, and it was pretty easy to manage netw...
Barbel asked 24/3, 2021 at 21:25
1
I'm running playwright in a react app. My goal is to return results right away for cached results.
The following is able to set and get cache. But the next time the same URL is requested, it acts l...
Aftersensation asked 28/12, 2022 at 23:32
1
I tried all of this,
page.on("console", lambda msg: print(f"error: {msg.text}") if msg.type == "error" else None)
page.on("console", lambda msg: print(msg.t...
Doran asked 7/3, 2022 at 11:19
6
Solved
I'm trying to write a function to find child(ren) element(s) within a locator something like:
async findElements(locator: Locator){
return locator.querySelector(some/xpath/or/css);
}
However, I'm...
Magnesite asked 14/10, 2022 at 21:48
16
I have just installed playwright (v1.18.1) to try it out (Windows 11) and I feel like something is wrong. I can run the example.spec.ts script fine, but if I copy that file and then try to run the ...
Scheider asked 9/2, 2022 at 16:47
4
I am trying to maximize the browser window using Playwright. I tried below code but the browser is not maximized to full mode.
hooks.cjs class:
const playwright = require('playwright');
const { Bef...
Simeon asked 7/11, 2022 at 1:52
8
I have an array-like object of nodes (it is a carousel), their order is randomly generated with each page refresh, playwright finds all the elements to be visible, but some of them are outside the ...
Midrash asked 4/3, 2021 at 14:52
3
I tried to run the playwright in docker but got this error:
browserType.launch: Host system is missing dependencies!
Missing libraries are:
libvpx.so.6
libicui18n.so.66
libicuuc.so.66
libwoff2...
Byssus asked 20/1, 2021 at 2:37
4
I am using a python module that uses playwright in my heroku flask app. The installation instructions for the module require that I install the browser binaries like:
python -m playwright install
...
Mantelpiece asked 17/11, 2020 at 23:21
5
Solved
When I write tests to run in playwright, I would like to be able to set the date that the browser believes it to be at the start of the test. Is there a way to achieve this using playwright?
Terena asked 18/9, 2020 at 17:47
12
Solved
I am using playwright.js to write a script for https://target.com, and on the page where you submit shipping information, it will provide the option to use a saved address if you have gone through ...
Newly asked 11/11, 2020 at 10:37
1
I have at least three options to click on a button:
await page.Locator("button", new() { HasText = "Создать" }).ClickAsync();
await page.GetByRole(AriaRole.Button, new() { Name...
Eisenhart asked 23/8, 2023 at 7:2
7
Solved
I'm using Playwright 1.15.2 for testing and facing a problem with elements' visibility. I want to check if a modal is visible on screen so I can close it. The modal starts with display:none and tur...
Dittography asked 1/12, 2021 at 5:17
4
Solved
I am using Playwright for end to end testing. One of the scenario involves checking the content of a pdf displayed in a PDFviewer window, for which download button have been hidden for the end user...
Turmoil asked 26/11, 2021 at 12:21
2
I am running multiple instances of chromium with playwright.
On each instance i am logging in with the same credentials.
Is there a way to automatically login into the other browser instances when ...
Landin asked 19/8, 2020 at 3:46
1 Next >
© 2022 - 2025 — McMap. All rights reserved.