selenium小问题

sexfio 2018-02-01 10:43:21
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver import ActionChains
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

h = webdriver.Firefox()
#h.implicitly_wait(3)

h.get('https://www.google.com')
wait = WebDriverWait(h, 3, 0.2)
h1 = wait.until(EC.presence_of_element_located((By.ID, 'su')))

无论如何,都超过3秒了而不返回报错,不知道为什么,请指教
...全文
527 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
tianfang 2018-02-02
  • 打赏
  • 举报
回复
超时时间大于3秒

37,719

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧