Relative Content

Tag Archive for pythonselenium-webdriverwebweb-crawler

Python, Selenium Web Scraping: Popup Issue from the First Web Page to the Second Web Page

This issue has been bothering me for several days, and I have not been able to find a suitable solution. Currently, I am using Python and Selenium for web scraping. After clicking a button on the first website, it forces the opening of a second website, which triggers an alert popup. However, despite trying many methods, I have been unable to capture the alert popup to proceed with the subsequent automated operations. If I use keyboard.press(Key.enter), other operations may interfere. I would like to know if anyone has encountered a similar situation and can provide a solution. The simulated situation of the website is as shown in the HTML below. Thank you very much.