driver.find_element_by_id("ch4_loginGuestBtn").click()
此命令间歇性失败:
^{pr2}$我想我需要做如下的事情。在
guestlogin_button = wait.until(EC.visibility_of_element_located((By.id, ".ch4_loginGuestBtn")))
actions = ActionChains(driver)
actions.move_to_element(guestlogin_button).click().perform()
但是,这是失败的,因为:
AttributeError: type object 'By' has no attribute 'id'
我做错了什么,我该如何修复等等,直到行吗?在
错误的代码但有效:
在时间。睡觉(一) i==0
你可能需要改变
到
^{pr2}$相关问题 更多 >
编程相关推荐