python 调试及相关问题

A    http://www.pythontab.com/html/2017/pythonhexinbiancheng_1115/1182.html?ref=myread

1、alert = driver.switch_to.alert()
TypeError: 'Alert' object is not callable

对象不能用函数形式调用,就是不能callable。 此类错误一般是由于内部函数被用作变量名时发生

解决:尝试使用

text = driver.switch_to_alert().text

B   python 安装mysql  请参考https://blog.csdn.net/qq_28509513/article/details/79134429


猜你喜欢

转载自blog.csdn.net/woshisiyecao/article/details/78563779