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
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:
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
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