selenium使用显示等待报错:TypeError: __init__() takes 2 positional arguments but 3 were give

问题:用selenium+python编程时,使用了显示等待,定位元素写到表达式没问题,但执行后一直报错:TypeError: init() takes 2 positional arguments but 3 were given 解决方法:直接在定位处写两个英文括号如果未定位到元素,会有超时异常报错:timeoutexception 参考文章:https://www.jianshu.com/p
相关文章
相关标签/搜索