internet explorer - How do I avoid issues with "Protected Mode" using IEDriverServer in Selenium? -


i'm attempting use internet explorer (8 in case) execute selenium tests via jenkins. understand "protected mode" internet security option needs set same value (enabled or disabled) site zones in order work.

i've tried doing both in browser (making sure i'm logged in same user that's executing tests in jenkins) , via gpo policy site zones under "local computer policy\computer configuration\administrative templates\windows components\internet explorer\internet control panel\security page" , under "local computer policy\user configuration\administrative templates\windows components\internet explorer\internet control panel\security page"..

however, continue receive error listed below:

unexpected error launching internet explorer. protected mode settings not same zones. enable protected mode must set same value (enabled or disabled) zones.

can point me in right direction in order resolve this?

(posting answer own question incase else comes here search.)

in order past problem had 2 things:

first, verify "turn on protected mode" settings same both "computer configuration" , "user configuration". don't think matters whether setting enabled/disabled, or whether protected mode enabled/disabled, long of them (11 under computer configuration , 11 under user configuration) identical.

the quickest way use group policy editor verify of appropriate settings configured.

to this, open local group policy editor (start / run / gpedit.msc) , navigate “local computer policy\computer configuration\administrative templates\all settings” node. sort setting (if not done) , scroll down until see bunch of "turn on protected mode" settings.

configure each of these same value. in case had set these enabled , protected mode disabled, once found registry change (see below), went in , set "not configured" , solution still worked. main point make them same.

then repeat process “local computer policy\user configuration\administrative templates\all settings” node.

once done, of protected mode settings should same. note: if use 1 user execute tests , system management, go through process on both users incase. (i had issues in setup i'm not sure if required, couldn't hurt.)

second, adjust registry settings. navigate "hklm\software\microsoft\windows\currentversion\internet settings\zones". every sub-key (0,1,2,3,4), locate dword named "2500". if doesn't exist, create it. again, set value identical 5 zones. used '0', enabled. believe '3' disabled.

repeat process "hkcu\software\microsoft\windows\currentversion\internet settings\zones" user using iedriverserver.exe.

once you've updated registry, reboot machine.

following these 2 steps resolved problem me after many hours of trying adjust settings manually or via gpo. other people seem have had success either method, using registry edits thing worked in environment (replicated (and fixed) on 2 different jenkins slaves).

note: i'm doing iedriverserver manipulation named user account jenkins. if you're executing tests "local system" user, may want take @ this answer further instructions/trouble-shooting.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -