Selenium not detecting the second window in IE

前端 未结 4 1185
醉话见心
醉话见心 2021-01-05 09:20

My application opens up a new window on clicking a button and i need to perform some actions in that window. But the response getWindowHandles() method of selenium webdriver

4条回答
  •  梦毁少年i
    2021-01-05 09:58

    On IE11, "Enable Protected Mode" setting on the browser is key - can be either ON or OFF (for all zones).

    Other settings on driver capabilities didn't matter (in my case) - following worked just as fine:

    		caps.setCapability("ignoreZoomSetting", false);
    		caps.setCapability("nativeEvents", false); 
    		caps.setCapability("ignoreProtectedModeSettings", false);

提交回复
热议问题