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
相關文章
相關標籤/搜索