Relative Content

Tag Archive for playwright

How to make the same request multiple times?

I have to make an API request to an endpoint and see if it returns a specific object. How can I make the same API request multiple times over a 60 second period until it returns that object using playwright? Here’s what I tried

how to capture and access session storage of the browser after login in playwright

I am using the following function to capture and store the state of the browser after login. i can see that this function captures the local storage in to a json file just fine. However, the token i am after (bearer/ access token) is only available in the session storage and not in local storage. any ideas on how to capture and access the session storage is greatly appreciated.

how to capture and access session storage of the browser after login in playwright

I am using the following function to capture and store the state of the browser after login. i can see that this function captures the local storage in to a json file just fine. However, the token i am after (bearer/ access token) is only available in the session storage and not in local storage. any ideas on how to capture and access the session storage is greatly appreciated.

Output of unique test reports not working

I configured Playwright to append new Date() to the test report folder which meant that each test run outputted a new test report which could be identified by the datetime in the title.
Recently reports have started over-writing each other – it seems as though a new instance of the reporter and report folder isn’t being created with each run.