Unable to launch IE browser in selenium webdriver

前端 未结 7 1166
再見小時候
再見小時候 2020-12-31 22:08

I have written a sample code to launch IE browser and load google page.

public class Sample {

 public static void main(String[] args) 
  {
             


        
7条回答
  •  一生所求
    2020-12-31 22:59

    If your IE version is 11, There are following steps to resolve it :-

    • Registry entries for 32 and 64 bit.

    create a DWORD value with the name "iexplore.exe" and the value of 0 in the following key

    for 32-bit Windows :- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE
    
    for 64-bit Windows :- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE
    
    • Adjusted "Protected Mode" to be the same for all security zones by navigating through Settings -> Internet Options -> Security
    • Unchek "Enable Protected Mode" for all zones
    • Even rebooted.

    If still getting the problem Add domain to list of "Trusted Sites" for i.e. in "Internet Options" (https to trusted sites, and http to local intranet).

    Hope it will help you..:)

提交回复
热议问题