Gordian
11 years agoOccasional Contributor
Can't see objects on "chrome://settings" page
I have TC 10.20 and Chrome 34.
With the object spy I'm able to see objects in my application so I know the extension is working. However in screens like "chrome://settings" or Chrome security certificate warning page I can only see the top level window for the tab. I can't see any objects inside of the page.
The WndCaption of the page is "Chrome Legacy Window".
The WndClass is "Chrome_RenderWidgeHostHWND".
The FullName is : Sys.Browser("chrome").BrowserWindow(0).Window(<WndClass>, <WndCaption>,1)
So what is the trick for seeing things inside of these legacy Chrome windows? I need to be able to click the "Proceed anyway" button on the security certificate warning page in Chrome. IE and Firefox aren't having this issue.
With the object spy I'm able to see objects in my application so I know the extension is working. However in screens like "chrome://settings" or Chrome security certificate warning page I can only see the top level window for the tab. I can't see any objects inside of the page.
The WndCaption of the page is "Chrome Legacy Window".
The WndClass is "Chrome_RenderWidgeHostHWND".
The FullName is : Sys.Browser("chrome").BrowserWindow(0).Window(<WndClass>, <WndCaption>,1)
So what is the trick for seeing things inside of these legacy Chrome windows? I need to be able to click the "Proceed anyway" button on the security certificate warning page in Chrome. IE and Firefox aren't having this issue.
Hi Thomas,
This is one of the Chrome specifics listed here:
For security considerations Chrome refuses all extensions to inject code into its internal pages (about:*, chrome:*). Because of that, internal pages, like the new tab page, the extension manager, the download manager, the history page and so on, are not accessible to TestComplete.
You may try playing with Chrome command-line parameters to accomplish your task - look at the --disable-web-security - parameter.
The list of all parameters you can find here.