Read a modal without treating it as an alert
Automation taskMediumPython onlyAsked in: Accenture, Capgemini, Infosys, TCS, Wipro
A classic confusion: "The pop-up is not an alert, and switching to the alert fails. Why?" A modal (a pop-up window) built with HTML is part of the page, while an alert is drawn by the browser. Find the modal with normal locators and wait for it to be visible.