IE navigates to default page before to given URL

It opens up a window, “This is the initial start page for the WebDriver server.”. After that it redirects to page. Execution is stopped during redirect with error message: Unable to wait for object to be present (Root cause: org.openqa.selenium.NoSuchWindowException: Unable to find elements on closed window

It opens up a window, “This is the initial start page for the WebDriver
server.”. After that it redirects to page.

What page? The correct page or a wrong page?

Execution is stopped during
redirect with error message: Unable to wait for object to be present
(Root cause: org.openqa.selenium.NoSuchWindowException: Unable to find
elements on closed
window

Are there popup windows involved in your app?

Please read and follow this advice:

So, when execution started IE opened with a localhost:XXXX address instead of given URL. Text on this page: “This is the initial start page for the WebDriver server.”. After that it redirects to given, correct URL. During this redirect I get error message: “Unable to wait for object to be present (Root cause: org.openqa.selenium.NoSuchWindowException: Unable to find elements on closed window” Redirect happens in the same window.

Hello @Russ_Thomas, I try to add some information because I have found the same problem of @plaidshirtakos

Premise: when I run the test case with Chrome (Google Chrome 87.0.4280.141 (Build ufficiale) (a 64 bit) (cohort: Stable)) I have not the same problem, the other way around, when I run the Test case with IE (1909 (build SO 18363.1316)) I have the following error:

My details PC:

I am using the katalon Studio Enterprise 7.8.2.


Following my script code:

import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows
import internal.GlobalVariable as GlobalVariable
import org.openqa.selenium.Keys as Keys
import org.openqa.selenium.By as By
import org.openqa.selenium.WebDriver as WebDriver
import org.openqa.selenium.WebElement as WebElement
import com.kms.katalon.core.webui.driver.DriverFactory as DriverFactory

WebUI.openBrowser(‘’)

WebUI.navigateToUrl(‘https://opensource-demo.orangehrmlive.com/’)

WebUI.click(findTestObject(‘Object Repository/test_table/Page_OrangeHRM/span_Username’))

WebUI.setText(findTestObject(‘Object Repository/test_table/Page_OrangeHRM/input_LOGIN Panel_txtUsername’), ‘Admin’)

WebUI.setEncryptedText(findTestObject(‘Object Repository/test_table/Page_OrangeHRM/input_Username_txtPassword’), ‘hUKwJTbofgPU9eVlw/CnDQ==’)

WebUI.click(findTestObject(‘Object Repository/test_table/Page_OrangeHRM/input_Password_Submit’))

CustomKeywords.‘utility.table.loop_table’(‘//*[@id=“task-list-group-panel-menu_holder”]/table’)

CustomKeywords.‘utility.table.print_AllColumns’(‘//*[@id=“resultTable”]’)

WebUI.closeBrowser()


following screen into console

I’ve seen 32bit, but I have a 64bit system, but I’m not sure if that could be the problem.

Thanks in advances

Hi @AndyCapp,

You need to configure the below steps on your IE before running KS script.

1 Like

Hi @duyluong, it’s brilliant. Done!! The script is working very well. Thanks :slight_smile:

1 Like