Chrome Browser is not launching the URL since 12 Aug 2024 in windows

Chrome Browser is not launching the URL. Attached the detailed log and screenshots for the reference.

**Chrome Driver Version : 127.0.6533.99 **
Chrome Application Version : 127.0.6533.100

The process started from chrome location C:\Program Files\Google\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

Starting ChromeDriver 127.0.6533.99 (f31af5097d90ef5ae5bd7b8700199bc6189ba34d-refs/branch-heads/6533@{#1910}) on port 56179
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
2024-08-13 18:20:37.048 ERROR c.k.k.core.keyword.internal.KeywordMain  - āŒ Unable to open browser with url: 'url link' (Root cause: com.kms.katalon.core.exception.StepFailedException: Unable to open browser with url: 'url link'
       at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)
       at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26)
       at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword.openBrowser(OpenBrowserKeyword.groovy:81)
       at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword.execute(OpenBrowserKeyword.groovy:67)
       at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
       at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.openBrowser(WebUiBuiltInKeywords.groovy:64)
       at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$openBrowser.call(Unknown Source)
       at ELM_TestListener.LoginToELM(ELM_TestListener.groovy:331)
       at ELM_TestListener$LoginToELM.callCurrent(Unknown Source)
       at ELM_TestListener.LoginToELMBeforeTestcase(ELM_TestListener.groovy:110)
       at ELM_TestListener.invokeMethod(ELM_TestListener.groovy)
       at com.kms.katalon.core.context.internal.TestHooker.invokeMethod(TestHooker.java:111)
       at com.kms.katalon.core.context.internal.TestHooker.lambda$3(TestHooker.java:95)
       at com.kms.katalon.core.context.internal.TestHooker.invokeContextMethods(TestHooker.java:94)
       at com.kms.katalon.core.context.internal.TestListenerCollector.lambda$3(TestListenerCollector.java:88)
       at com.kms.katalon.core.context.internal.TestListenerCollector.handleListenerEvent(TestListenerCollector.java:85)
       at com.kms.katalon.core.context.internal.ExecutionEventManager.publicEvent(ExecutionEventManager.java:36)
       at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:268)
       at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:144)
       at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
       at TempTestCase1723553353653.run(TempTestCase1723553353653.groovy:25)
Caused by: org.openqa.selenium.SessionNotCreatedException: session not created: DevToolsActivePort file doesn't exist
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'SMW009442', ip: '192.168.29.61', os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_362'
Driver info: driver.version: CChromeDriver
remote stacktrace: GetHandleVerifier [0x00007FF7F3F69632+30946]
       (No symbol) [0x00007FF7F3F1E3C9]
       (No symbol) [0x00007FF7F3E16FDA]
       (No symbol) [0x00007FF7F3E55CF5]
       (No symbol) [0x00007FF7F3E516BC]
       (No symbol) [0x00007FF7F3E4C4FA]
       (No symbol) [0x00007FF7F3E978B9]
       (No symbol) [0x00007FF7F3E96F20]
       (No symbol) [0x00007FF7F3E8C813]
       (No symbol) [0x00007FF7F3E5A6E5]
       (No symbol) [0x00007FF7F3E5B021]
       GetHandleVerifier [0x00007FF7F409F83D+1301229]
       GetHandleVerifier [0x00007FF7F40ABDB7+1351783]
       GetHandleVerifier [0x00007FF7F40A2A03+1313971]
       GetHandleVerifier [0x00007FF7F3F9DD06+245686]
       (No symbol) [0x00007FF7F3F2758F]
       (No symbol) [0x00007FF7F3F23804]
       (No symbol) [0x00007FF7F3F23992]
       (No symbol) [0x00007FF7F3F1A3EF]
       BaseThreadInitThunk [0x00007FFEBA98257D+29]
       RtlUserThreadStart [0x00007FFEBB62AF28+40]
 
       at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62)
       at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)
       at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)
       at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)
       at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
       at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
       at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
       at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
       at com.kms.katalon.selenium.driver.CChromeDriver.execute(CChromeDriver.java:19)
       at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
       at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
       at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
       at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:147)
       at com.kms.katalon.selenium.driver.CChromeDriver.<init>(CChromeDriver.java:13)
       at com.kms.katalon.core.webui.driver.DriverFactory.createNewChromeDriver(DriverFactory.java:441)
       at com.kms.katalon.core.webui.driver.DriverFactory.startNewBrowser(DriverFactory.java:374)
       at com.kms.katalon.core.webui.driver.DriverFactory.openWebDriver(DriverFactory.java:263)
       at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword$_openBrowser_closure1.doCall(OpenBrowserKeyword.groovy:74)
       at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword$_openBrowser_closure1.call(OpenBrowserKeyword.groovy)
       at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
       ... 19 more
)
2024-08-13 18:20:37.058 ERROR c.k.k.core.context.internal.TestHooker   - āŒ com.kms.katalon.core.exception.StepFailedException: Unable to open browser with url: 'url link'
       at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)
       at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26)
       at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword.openBrowser(OpenBrowserKeyword.groovy:81)
       at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword.execute(OpenBrowserKeyword.groovy:67)
       at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
       at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.openBrowser(WebUiBuiltInKeywords.groovy:64)
       at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$openBrowser.call(Unknown Source)
       at ELM_TestListener.LoginToELM(ELM_TestListener.groovy:331)
       at ELM_TestListener$LoginToELM.callCurrent(Unknown Source)
       at ELM_TestListener.LoginToELMBeforeTestcase(ELM_TestListener.groovy:110)
       at ELM_TestListener.invokeMethod(ELM_TestListener.groovy)
       at com.kms.katalon.core.context.internal.TestHooker.invokeMethod(TestHooker.java:111)
       at com.kms.katalon.core.context.internal.TestHooker.lambda$3(TestHooker.java:95)
       at com.kms.katalon.core.context.internal.TestHooker.invokeContextMethods(TestHooker.java:94)
       at com.kms.katalon.core.context.internal.TestListenerCollector.lambda$3(TestListenerCollector.java:88)
       at com.kms.katalon.core.context.internal.TestListenerCollector.handleListenerEvent(TestListenerCollector.java:85)
       at com.kms.katalon.core.context.internal.ExecutionEventManager.publicEvent(ExecutionEventManager.java:36)
       at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:268)
       at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:144)
       at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
       at TempTestCase1723553353653.run(TempTestCase1723553353653.groovy:25)
Caused by: org.openqa.selenium.SessionNotCreatedException: session not created: DevToolsActivePort file doesn't exist
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'SMW009442', ip: '192.168.29.61', os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_362'
Driver info: driver.version: CChromeDriver
1 Like

Hi there,

Thank you very much for your topic. Please note that it may take a little while before a member of our community or from Katalon team responds to you.

Thanks!

kindly format the code snippets for better readability Use Code Formatting feature in your posts

1 Like

similar issue discussed here

Hi @dineshh Tried all the steps which is mentioned in the similar issue link which you have shared. Still the issue is not resolved.

The log in the original post has the following lines:

It impiles to me that the Test Listeners/ELM_TestListner has a code section like:

class ELM_TestListener {

    @BeforeTestCase
    def LoginToELM(TestCaseContext testCaseContext) {
        WebUI.openBrowser("url link")
    }

}

Of course, my guess would be wrong. The line WebUI.openBrowser("url link") is nonsense.

But how your code look like actually?

Please show your code.

The title of this issue seems to be insisting that the same code worked OK prior to 12 Aug 2024. Do you really think so? Do you have any idea what triggered the change?

Hi @kazurayam, I havenā€™t changed anything suddenly while running the testcase I faced the issue. Here is the code which Iā€™m using via test listener

def LoginToELM(String ELMServer_Env , String sUsername, String sPassword) {

		ChromeOptions options = new ChromeOptions();
		options.setExperimentalOption("userAutomationExtension", false);
		options.addArguments("--disable-extensions");

		DesiredCapabilities cap = DesiredCapabilities.chrome();
		LoggingPreferences logs = new LoggingPreferences();
		logs.enable(LogType.BROWSER, Level.ALL);
		cap.setCapability(CapabilityType.LOGGING_PREFS, logs)
		cap.setCapability(ChromeOptions.CAPABILITY, options)
		def folder = new File("C:\\KatalonTemp")
		if (!folder.exists()) {
			folder.mkdir()
		}
		System.properties['webdriver.chrome.logfile'] = "C:\\KatalonTemp\\chromedriver.log"
		System.properties['webdriver.chrome.verboseLogging'] = true
		//WebUI.deleteAllCookies()
		WebUI.openBrowser(ELMServer_Env)
		WebUI.comment(ELMServer_Env)
		WebUI.delay(GlobalVariable.G_iShortDelay)
		//WebUI.switchToWindowUrl(GlobalVariable.G_sLoginWindowURL, FailureHandling.STOP_ON_FAILURE)
		WebDriver driver = DriverFactory.getWebDriver()

		driver.findElement(By.tagName("html")).sendKeys(Keys.chord(Keys.CONTROL, "0"))

		try {
			WebUI.waitForElementVisible(findTestObject('Object Repository/LoginPage/Txt_UserID'), 10)
		}catch(Exception e){
			WebUI.waitForElementVisible(findTestObject('Object Repository/LoginPage/Txt_UserID'), 10, FailureHandling.STOP_ON_FAILURE)
		}

		// It will return the parent window name as a String
		String parent=driver.getWindowHandle();

		Set<String>s=driver.getWindowHandles();

		int WindowsSize= s.size()
		println(WindowsSize)
		if(WindowsSize>1) {

			// Now iterate using Iterator
			Iterator<String> I1= s.iterator();

			while(I1.hasNext())
			{
				String child_window=I1.next();
				if(!parent.equals(child_window))
				{
					driver.switchTo().window(child_window);
					System.out.println(driver.switchTo().window(child_window).getTitle());
					
					WebUI.setText(findTestObject('Object Repository/LoginPage/Txt_UserID'), sUsername)
					WebUI.setEncryptedText(findTestObject('Object Repository/LoginPage/Txt_Password'), sPassword)
					//WebUI.click(findTestObject('Object Repository/Common/Buttons/Btn_Login'))
					//CustomKeywords.'com.ELM.Optional.JSClick'(findTestObject('Object Repository/Common/Buttons/Btn_Login'))
					WebUI.click(findTestObject('Object Repository/LoginPage/Btn_LogIn'))
				}
			}
			//switch to the parent window
			driver.switchTo().window(parent);
			println(driver.switchTo().window(parent).getTitle())
		}else {
			WebUI.setText(findTestObject('Object Repository/LoginPage/Txt_UserID'), sUsername)

			WebUI.setEncryptedText(findTestObject('Object Repository/LoginPage/Txt_Password'), sPassword)

			//WebUI.click(findTestObject('Object Repository/Common/Buttons/Btn_Login'))
			//CustomKeywords.'com.ELM.Optional.JSClick'(findTestObject('Object Repository/Common/Buttons/Btn_Login'))
			WebUI.click(findTestObject('Object Repository/LoginPage/Btn_LogIn'))
		}

		//WebUI.switchToWindowIndex(0, FailureHandling.STOP_ON_FAILURE)
		//driver.manage().window().setSize(new Dimension(1225, 630))
		//WebUI.maximizeWindow()

		
		try {
			WebUI.waitForElementVisible(findTestObject('Object Repository/HomePage/Pop_UserProfile'), 10)
			WebUI.waitForElementPresent(findTestObject('Object Repository/HomePage/Pop_UserProfile'), 10, FailureHandling.STOP_ON_FAILURE)
		}catch(Exception e){
			WebUI.comment("UseProfile Element is not found")
		}

	}

Thank you for disclosiing your code.

Your code has the following lines:

I suspect that the parameter ā€œELMServer_Envā€ accepted a string value ā€œurl linkā€.

Firstly I would propose you to carry out a ā€œprint debugā€. You want to make the LoginToELM function to inform you a bit more how the parameter ā€œELMServer_Envā€ was set. And you want to change the function a bit more defensive against unexpected values given. So, I would propose you to change it as follows:

def LoginToELM(String ELMServer_Env , String sUsername, String sPassword) {
        assert (ELMServer_Env.startsWith('http://') || 
                ELMServer_Env.startsWith('https://') : "ELMServer_Env given is " + ELMServer_Env + 
                    ", sUsername is " + sUsername + 
                    ", sPassword is " + sPassword
...
		WebUI.openBrowser(ELMServer_Env)
...

Try running it. Possibly your test will fail again, but will give you a bit more information. The diagnostics will tell you that there is something wrong somewhere outside the LoginToELM() function.

can you directly pass the url and check once

Directly also I have passed and checked. It is not working.

only that url is not working or any URL?

Hi there @nandhini.sri_1, :wave:

Just checking in to see if Kazuyaram and Dineshh were able to help you resolve your issue or not.

Please remember to follow up with other members frequently to receive the best support.

Thanks,
Albert