I am using the Playwright library to get data from a website. The issue is that website shows a popup when it open which results in stuck processes since the program is not able to get any button due to the popup.
Is there any way to close a popup each time it appears using the playwright?
Edit:
Page is creating a pop-up. I inspect the page and learnt that they are not using the modal for the pop instead they wrote the inline css and decorated a div as the popup.