arn-arn
arn-arn

Reputation: 1377

bypassing Internet Explorer options for protected mode using Selenium

I tried different methods/ways to set my internet options setting using regedit but it was not modifying my internet explorer options to protected mode. I searched in the internet on how to address the issue on using IEDriver that needs a configuration to be either protected/non-protected on all zones using the path below: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\

can anyone point me to the right direction? (i have limited access that is why i cannot change the settings using the internet options from the browser itself).

thanks again for the help.

Upvotes: 1

Views: 917

Answers (2)

Kromus
Kromus

Reputation: 31

Are you on a work computer? If so, it is likely your corporate internet settings are overwriting your local settings. Try the following:

  1. Go to regedit
  2. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones
  3. In 1, 2, 3, 4 you will find the Reg file "2500" in each folder
  4. Go through each of these folders, edit 2500 and change it to the same value in each 1, 2, 3, 4, either true or false is fine as long as they're the same
  5. Try running your script!

If that doesn't work: Recheck those registry values after editing them. Are they changing back to their previous value even after you have changed them? If so, then it means your corporate policy is going to keep changing it back.

Upvotes: 3

Peter Bernier
Peter Bernier

Reputation: 8068

Take a look at This Question and Answer. You may also have to make your changes under HKLM to get it to work.

Upvotes: 1

Related Questions