Forum Discussion

nathanginoza's avatar
4 years ago

See this error test engine does not have access to internal objects, methods, properties....

Hi All


Running TE from a bat files and sometimes seeing this error: 


An internal error occurred while running the Google Chrome browser.
Details: The test engine does not have access to internal objects, methods, and properties of the page open in Chrome. Check whether SmartBear Test Extension is installed and enabled. To install or enable the extension, you can open the following page in Chrome:


does not happen all the time.


Viewing task manager I see the above with many instances of Chrome.

This is the bat file:

:: Automatically check & get admin rights V2
Echo off
ECHO =============================
ECHO Running Admin shell
ECHO =============================

setlocal DisableDelayedExpansion
set "batchPath=%~0"
for %%k in (%0) do set batchName=%%~nk
set "vbsGetPrivileges=%temp%\OEgetPriv_%batchName%.vbs"
setlocal EnableDelayedExpansion

if '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges )

if '%1'=='ELEV' (echo ELEV & shift /1 & goto gotPrivileges)
ECHO **************************************
ECHO Invoking UAC for Privilege Escalation
ECHO **************************************

ECHO Set UAC = CreateObject^("Shell.Application"^) > "%vbsGetPrivileges%"
ECHO args = "ELEV " >> "%vbsGetPrivileges%"
ECHO For Each strArg in WScript.Arguments >> "%vbsGetPrivileges%"
ECHO args = args ^& strArg ^& " " >> "%vbsGetPrivileges%"
ECHO Next >> "%vbsGetPrivileges%"
ECHO UAC.ShellExecute "!batchPath!", args, "", "runas", 1 >> "%vbsGetPrivileges%"
"%SystemRoot%\System32\WScript.exe" "%vbsGetPrivileges%" %*
exit /B

setlocal & pushd .
cd /d %~dp0
if '%1'=='ELEV' (del "%vbsGetPrivileges%" 1>nul 2>nul & shift /1)


for /f "skip=1 tokens=3" %%s in ('query user %SvcTFSTestAgent%') do (
%windir%\System32\tscon.exe %%s /dest:console

taskkill /IM TestExecute.exe /f

taskkill /IM chrome.exe /f

taskkill /IM GoogleCrashHandler64.exe /f

taskkill /IM GoogleCrashHandler.exe /f

"C:\Program Files (x86)\SmartBear\TestExecute 14\x64\Bin\TestExecute.exe" "C:\CoStarSuite\Test\TC_Automation\CS_Master_TC_Lib\CS_TC_Wrapper\CostarAnalyticsTestCompleteLibrary\CostarAnalyticsTestCompleteLibrary.pjs" /r /p:AnalyticsRegressionTest /u:Dashboards_Regression /rt:Daily_DashboardRun_DC /run /exit /SilentMode


About 1 hour before we run the script we do a shutdown / restart.


Any ideas?


TIA, Nathan