Python Selenium: Open Internet Explorer Webpage

preview_player
Показать описание

32-Bit Driver Link:

Script/Code:
from selenium import webdriver
#Setting up the driver
caps = webdriver.DesiredCapabilities.INTERNETEXPLORER
caps['ignoreProtectedModeSettings'] = True
caps['nativeEvents'] = True
caps['ignoreZoomSetting'] = True
caps['InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS'] = True
caps['requireWindowsFocus'] = True
driver = webdriver.Ie(capabilities=caps)
#Use the driver to call a website
print("driver set up")
print("done")
Рекомендации по теме
Комментарии
Автор

Hi Jarad I tired to follow your instruction to start selenium with ie however python seems to stuck at drive = webdriver.Ie(). It successfully open IE11 but it won't execute the next code like driver.get()... any ideas?

gabrielwong
welcome to shbcf.ru