我正在尝试执行下面的代码,在IE浏览器上启动提供的URL后,下一行代码超时,无法执行。在IE浏览器上启动所提供的URL后,下一行代码超时,无法执行。
应用程序和版本。 Selenium: 3.141 Python: 3.8 Pycharm IDE: 2020.1
代码:我正在尝试执行下面的代码。
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
driver=webdriver.Ie(executable_path="...\IEDriverServer.exe")
driver.get("https://google.co.in") # Launch is successful.
print(7+7) # This is not executed. The process times out.
解决方案:
我以前使用的是64位的IE驱动,现在我试着用32位的,它允许我在浏览器启动后继续执行,没有超时现象。
谢谢你