Ask a Question

Error- Unable to navigate.. and Warning- Simulating the ESC keystroke to close the unexpected window

SOLVED
rmalhotra
New Contributor

Error- Unable to navigate.. and Warning- Simulating the ESC keystroke to close the unexpected window

Why is my simple script to just launch chrome and navigate to any url is failing on chrome browser (working on Edge and Fire Fox)?

 

Testcomplete version = 15.20.341.7 x64

Chrome is up to date - Version 96.0.4664.110 (Official Build) (64-bit)

 

Script =

function test()
{
Browsers.Item("chrome").Run("http://www.google.com/");
}

 

Logs show -

Warning: "Simulating the ESC keystroke to close the unexpected window"

Error: "Unable to navigate to the http://www.google.com

Details: 

URL: http://www.google.com/
Process ID: 18804
Process Command Line: "C:\Program Files\Google\Chrome\Application\chrome.exe"  --disable-hang-monitor --remote-debugging-port=9222
Info: Cannot find the Page node after calling the NavigateTo method.

Check whether TestComplete Chrome Extension is installed and enabled.

Sys.Browser("chrome")
 

I have tried -

- Preparing chrome for Web Testing as per the steps given in TestComplete documentation

- Closing all windows except Test Complete before running the test

- Unchecking "Press Esc" in Project Properties-> Playback->On unexpected window

1 ACCEPTED SOLUTION

Accepted Solutions
rmalhotra
New Contributor

Re: Error- Unable to navigate.. and Warning- Simulating the ESC keystroke to close the unexpected wi

I opened a support ticket and finally, got the solution. Thanks.

 

The issue got resolved by Disabling the Live Caption in Chrome settings.

 

Steps - 

1. Go to Chrome Settings -> Advanced -> Accessibility (chrome://settings/accessibility)

2. Disable Live Caption 

 

rmalhotra_0-1642192721430.png

 

View solution in original post

4 REPLIES 4
vinniew
Staff

Re: Error- Unable to navigate.. and Warning- Simulating the ESC keystroke to close the unexpected wi

Hi @rmalhotra 

 

Can you try the following, 

 

Navigate to your web application, using the object spy in TestComplete 

 

Check if TestComplete recognizes any objects on screen

 

Can you check if the extension is actually running when you launch chrome.(there may be a block running this process with your antivirus or group policies) 

 

It could be that be that our "tcCrHost.exe" is not running. TestComplete uses this process to send information between the extension and the client. Without this process the client will believe that the extension isn't installed. When this issue occurs please try validating that the process is running. You can check this within Task Manager under the "Details" tab. If it's not running then it may be blocked or delayed by your system's security systems. In this case it may be necessary to whitelist the process.

 

KR

Vincent

rmalhotra
New Contributor

Re: Error- Unable to navigate.. and Warning- Simulating the ESC keystroke to close the unexpected wi

Hi @vinniew 

 

Thanks for your reply.

 

I checked in Task Manager that "tcCrHost.exe" is running.

 

Object spy in TestComplete is not recognizing any objects on screen. Instead, it is recognizing the whole screen.

sonya_m
Community Manager

Re: Error- Unable to navigate.. and Warning- Simulating the ESC keystroke to close the unexpected wi

Hi @rmalhotra ! If the replies from the Community didn't help, please consider opening a support ticket since your question might require a more thorough investigation. Thank you!


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
rmalhotra
New Contributor

Re: Error- Unable to navigate.. and Warning- Simulating the ESC keystroke to close the unexpected wi

I opened a support ticket and finally, got the solution. Thanks.

 

The issue got resolved by Disabling the Live Caption in Chrome settings.

 

Steps - 

1. Go to Chrome Settings -> Advanced -> Accessibility (chrome://settings/accessibility)

2. Disable Live Caption 

 

rmalhotra_0-1642192721430.png

 

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: