Python+selenium processing Alert pop-up window reports an error: TypeError: 'Alert' object is not callable solution

The error is as follows:
insert image description here

Cause analysis:
'Alert' object is not callable means that Alert cannot be called by a function, it is not a function.
Solution:
Remove the brackets after Alert.
The correct code is as follows:
insert image description here

Guess you like

Origin blog.csdn.net/Aihu202/article/details/108304484