Category "playwright"

Playwright test with NX

I have an NX workspace with a single application called my-app. I would like to run Playwright tests for my-app application by using NX console. Currently NX do

Sample DockerFile for playwright test

trying to dockerize my playwright test and having looking for some reference on how i can write the dockerfile. Did some searches but could not find much help.

How to open a new tab using Python Playwright by feeding it a list of URLs?

According to the Playwright documentation, the way to open a new tab in the browser is as shown in the scrap_post_info() function? However, it failed to do so.

Playwright: .toBeVisible() timeout is ignored

I faced an unclear behavior in the Playwright 1.18 toBeVisible() expectation. Here is the test row: await expect(this.page.locator('.top-row .close i')).toBeVis

Attach screen video on allure-playwright-reporter

Is there a way to have screen recording of each test in allure-playwright-reporter. I am able to capture screenshots for each test but also wish to have screen

Playwright: Upload files from non-input element that cannot be used page.setInputFiles?

I'm working on uploading files through non-input HTML tag on Playwright. For example, you can use setInputFiles like this, and this works: await page.setInputFi

Playwright Python Click in element inside iframe document

How can I click on this element that is inside an iframe with an html document? IMAGE .click() does not work

How to check if an element is in the document with playwright?

I want to test if an element had been rendered. So I want expect that if is present. Is there a command for this? await page.goto(‘<http://localhost:30

Select input by label text in Puppeteer/Playwright

Given the following markup: <label for="name">Name</label> <input type="text" id="name" /> I want to fill the input value in a Playwright tes

How to select User certificates from edge browser using Playwright with Java

How to select User certificates from edge browser using Playwright with Java. We have different certificate added in browser for each role and we need to select

Playwright JS - How to globally define/change timeout if element/selector not found?

Basically I want playwright to wait for each element 5 seconds if element not found. There is a way to change timeout individually as given below: await page.wa

Need to fetch text of a span class inside iframe in playwright javascript

Image of HTML structure Can someone explain me how to get the text of the start game button which is present inside iFrame in Playwright JavaScript , I tried us

Puppeteer/Playwright is it possible to set the browser visible when launching as headless

Is it possible to launch Playwright with headless set to true and then later while the browser is still running change headless to false? I could not find anyth

Puppeteer / Playwright Heroku buildpack size restrictions

I've a Puppeteer application running on Heroku. The buildpacks I'm using are: https://github.com/jontewks/puppeteer-heroku-buildpack https://github.com/mentimet

How can you get the selected option of a dropdown with Playwright

I am using the C# Language Bindings of Playwright. Example HTML: <select id="txtType" name="Type" class="form-control"> <option>Blog Posts&l

How can you get the selected option of a dropdown with Playwright

I am using the C# Language Bindings of Playwright. Example HTML: <select id="txtType" name="Type" class="form-control"> <option>Blog Posts&l

Playwright test library - parent element for selector

please, how to get a parent element for a text selector by the Playwright E2E library. Is better to modify the selector (it is string by something like >>

How to do a POST Request with PlayWright

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

How to use installed version of chrome in Playwright?

I want to use chrome instead of chromium. I can achieve the same in puppeteer by providing executable path. In playwright it doesn't work as browser type argume

How can we achieve browser zoom in and zoom out in playwright?

Need to find a way to zoom browser in and out during an e2e test run. Below code does not work. await page.keyboard.down('Control'); for (let i = 0; i < 7;