How to create a Dockerfile – C# + Playwright
I'm facing an issue I'm not getting why and how to solve it. Can you help, or give me some hints to figure out what's wrong with my Dockerfile? code so far: # Official .NET SDK image to build and…
I'm facing an issue I'm not getting why and how to solve it. Can you help, or give me some hints to figure out what's wrong with my Dockerfile? code so far: # Official .NET SDK image to build and…
Given the following html: ... <div class="table"> <div role="row" row-id="1">...</div> <div role="row" row-id="2">...</div> <div> ... How can I use the getByRole('row') locator to get the div with row-id="1"? Using getByRole('row').filter('[row-id="1"]') doesn't work as filter seems to be applied on the…
I am unable to upload a file using Playwright as it can't find a locator for input type I'm trying to upload a file as below : await page.locator('//div/input[@class=xyz]').setInputFiles('Upload_files/CSV Test file.csv'); but the browser is unable to find this locator…
May I know what is the equivalent of the cypress.env() in playwright. We have below line of code in yml file in Cypress CYPRESS_test_suite: 'Smoke tests' Then in 1 of our spec file we have this line of code const…
playwright document has parameterize sample like this. It works const people = ['Alice', 'Bob']; for (const name of people) { test(`testing with ${name}`, async () => { // ... }); // You can also do it with test.describe() or with…
I have a button on a webpage which looks like this: <button rpl="" aria-controls="comment-children" aria-expanded="true" aria-label="Toggle Comment Thread" class="text-neutral-content-strong bg-neutral-background overflow-visible w-md h-md button-small px-[var(--rem6)] button-plain icon items-center justify-center button inline-flex "> <!--?lit$747127195$--><!----><span class="flex items-center justify-center"> <!--?lit$747127195$--><span class="flex"><!--?lit$747127195$--><svg rpl="" fill="currentColor"…
It is easy to wait for a request if they have unique endpoints. But how do we wait for a particular request if all the endpoints are same, but the request payload varies, eg GraqhQL middle layer. In this case…
I have Test A in folder A1 and Test B in folder B1. Using PlaywrightJS I would like to execute all of the tests inside folder B1 ONLY if everything inside folder A1 passes without any failures. The runner should…
I am working on test automation using Playwright in VSCode (JS). Before completing the entire functionality, I want to verify whether my locators are correct. Currently, I can only see if a locator works by using that locator during test…
According to Playwright Tag-Tests Docs Tagging test looks like this: test('My test @foo', async ({ page }) => { // ... }); But there is no mention of multi tagging. I'm looking for something like: test('My test @foo, bar', async…