I am facing a problem automating the protection settings in IE using Selenium with python
.
I found a solution to automate the settings in java but it is not working when i changed it to python .
I tried the following::
from selenium import webdriver
caps=webdriver.DesiredCapabilites.INTERNETEXPLORER
caps['INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS']=True
driver=webdriver.Ie(caps)
This gave an error with respect to the argument given .
and when I used driver = webdriver.Ie()
It says protection mode settings must be same for all zones.
Can anyone help me automate this thing using selenium in python.
Desired capabilities doesn't work in some instances. Here is a method to change protection settings from the registry using winreg.
According to documentation, in python-selenum, you should use setting called
ignoreProtectedModeSettings
: