NoSuchWindowException was unhandled: Unable to find the item in a closed window. IE 11 - Selenium C #

Perhaps this question has been asked many times. But I looked at all related issues in stackoverflow, but could not find a satisfactory solution.

Well, I am writing selenium automation code in VS2010 using C #, IE11 is my web browser that I am testing on. Use the 32-bit version of IEDriverServer on Windows 7 to open an instance of IE.

I already knew that there was a compatibility problem between selenium and IE 11, but so far my code worked fine when I started getting this error - "NoSuchWindowException was unhandled: it was not possible to find the item in a closed window."

Below are my steps: -

IWebDriver driver = new InternetExplorerDriver("D:\\");
driver.Navigate().GoToUrl("http://aiaw00572.belldev.dev.bce.ca:8060/UTM_MechHDTool_UserWebApp");

driver.FindElement(By.Id("ctl00_cpMainContent_radcboTaskType_Input"), 10).Click();

driver.FindElement(By.XPath("//div[@id='ctl00_cpMainContent_radcboTaskType_DropDown']/div/ul/li[2]")).Click(); (this step select a drop down option which performs a postback on the page)

driver.FindElement(By.Id("ctl00_cpMainContent_utmTaskGrid_ctl00_ctl06_imgbtnStartWorking")).Click();//Getting error on this step. Earlier i was not getting it anywhere

, , , . , .

, - - , , .

+4
4
+7

:

org.openqa.selenium.NoSuchWindowException: (: )

1. Windows. Internet Explorer 11 x64 (64 ), ie11_win64.reg :

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BFCACHE]
"iexplore.exe"=dword:00000000

.

Internet Explorer 11 x86 (32 ), ie11_win32.reg :

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_BFCACHE]
"iexplore.exe"=dword:00000000

.

2. Internet Explorer. ( , : , , , )

enter image description here

enter image description here

enter image description here

enter image description here

+5

Jbehave Serenity. , - . Webdriver .

0
source

All Articles