Puppeteer: How can I wait until a list is closed? How can I wait until an element is disappeared from the DOM?

Сase: There is a list in which you need to select an item, then it closes. When you click on another item the list does not have time to close. Finally there is one more click on another list...

How to read a textbox value from a playwright

I have input text field on the page with id "email30" and I am trying to read it's value from Playwright let dd_handle = await page.$("#email30"); let value = await...

Maintain Login Session after first browser instance in playwright

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...

Using Playwright for Python, how do I select an option from a drop down list?

This is a followup to this question on the basic functionality of Playwright for Python. How do I select an option from a drop down list? This example remote controls a vuejs-webseite that has a...

Get current page url with Playwright Automation tool?

is it possible to get the current url from the page in PLaywright? I can't seem to find any information in the docs. Something like this: let url = await page.url

switch tabs in playwright test

I'm trying to switch between tabs using playwright tests but it's not taking control of windows element. Do we have any method similar to selenium driver.switchto().window() in playwright? const...

How to intercept downloads of blob generated in client side of website through puppeteer?

I have a page on this link (https://master.d3tei1upkyr9mb.amplifyapp.com/report) with 3 export buttons. These export buttons generate XLSX, CSV, PDF on the frontend, and hence there are no URLs...

Check browser console messages and response status codes in Playwright and Jest

I recently started writing end to end tests using Playwright and Jest packages. In a test I would like to check that, after loading a page, the browser console doesn't contain any error message...

Is there a way in Playwright to select a specific button inside a dynamic table?

I'm new in developing and I'm facing a real problem with the creation of one e2e test. Basically, I have a table with 2 or more rows, every row has 5 columns ( title, x, y,z button). How can I...

Azure AD Based SSO using Playwright

How do we test SPAs which have Azure AD based authentication? When user opens the app, user is first sent to login.microsoftonline.com and on entering the user email the page redirects back to...

Use Jest with @web/test-runner

I am trying to use @web/test-runner as my test runner on top of snowpack. So far I am successful with @web/test-runner-playwright to launch a headless browser to run my tests. Now I need a testing...

How to wait for JavaScript to finish in playwright

I am testing UI with Playwright and JavaScript. My code find an input element that can sometimes be a drop down, sometimes a text and sometimes a date. To handle this I enter value with 2 steps....

How to get in browser window handles and be able to switch between tabs?

So im the process of moving from Selenium .net to PlayWrightSharp and something I do is get the current handles and be able to switch between tabs... Im unable to find a clear way to do this in...

Playwright & NodeJs - Read CSV and push data to an array

I am using the playwright library for web scraping and URLs are stored in a CSV file. I am trying to read the CSV file and pick the URLs in an array to utilize in the scraping code. Here is the...

Playwright - how to check if element is in viewport?

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...

Stripe CardElement fails to render in Playwright test

I have a React application that contains a simple credit card form using Stripe Elements that looks something like this: import { Elements, CardElement } from '@stripe/react-stripe-js'; function...

How to use Playwright Sharp in F# for Browser Automation

I guess this is a classic C# to F# conversion I haven't quite got my head around. I am trying to automate a browser using the quick start https://playwright.dev/dotnet/docs/intro The C# code...

How to pass different test data to a test in Playwright test runner?

How to pass different test data to a test in Playwright test runner? Like sending the test data from a csv file?

Root Hook Plugin to Run Before All Tests with Mocha and Playwright

I've hooked up some automated tests for my Vuejs project by adding this plugin to my project. The Vuejs app was created using the vue-cli. It all works fine and Playwright seems to be a very...

Go to page URL using test.BeforeAll for playwright-test runner

test.beforeAll(async ({ page }) => { // Go to the starting url before each test. await page.goto('https://my.start.url/'); }); Is there a nice way in playwright-test runner to setup the...

How to generate Allure HTML report using playwright/test runner?

How to generate Allure HTML report using playwright/test runner? We are planning to use Nodejs, Typescript and Playwright recommended test runner (playwright/test) but wasn't able to find any...

What devices are available using Playwright devices api?

Where can I find a full list of devices enabled to be used for emulation with Playwright testing

Fill Stripe Elements Card with Playwright

I want to fill in a Stripe Card Element using Playwright. The regular locators don't seem to work. The following for example does nothing: await page.fill('iframe input[name="cardnumber"]',...

how can I get playwright to listen to message events

I have a website that communicates through postMessage commands window.parent.postMessage(communication, this.origin); When using playwright, I'm trying to do an "on message" handler function...

Playwright script timing out when looping through elements

I'm getting an error: Timeout of 30000ms exceeded. How can I work with playwright so that this doesn't time out? If possible I don't want to increase the timeout period. The code loops over a...

Cannot install playwright: Couldn't find project using Playwright. Ensure a project or a solution exists in

I'm trying to install playwright on my deployment target machine in order to run UI tests. # Install the CLI once. dotnet tool install --global Microsoft.Playwright.CLI playwright...

ERROR: Playwright does not support chromium on mac12-arm64

Whenever I try to run "npm install" on mac OS Monterery 12.0.1 I receive this back Device: Macbook pro 2021 with m1pro chip " throw new Error(Failed to download ${browserName}, caused...

Check if element is visible in Playwright

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...

I'm getting an error using playwright nth-match

I just discovered playwright and I'm trying to see if it would be better to use than selenium. One issue I have is that none of the items in the application I write testing scripts for have names...

scrapy-playwright:- Downloader/handlers: scrapy.exceptions.NotSupported: AsyncioSelectorReactor

I tried to extract some data from dynamically loaded javascript website using scrapy-playwright but I stuck at the very beginning. From where I'm facing trubles in settings.py file is as...