I have a solution here, you can use uiautomation to find the browser control and activate it, while starting a thread to invoke the system-level enter button. After uiautomation activates the browser window, it starts to perform carriage enter once a second, and the pop-up window of this browser can be skipped correctly.