Forum Discussion
- tristaanogreEsteemed Contributor
Actually, I think that's probably better captured, not as the WndCaption, but something more like
Sys.Browser('*').Page('http://my.page.url').contentDocument.title
- bo_roopContributor
Thanks. I'm trying to get it to work the way it used to work in IE, Firefox and chrome... without modifying existing functionality if possible.
I see that your way works but do you know of a way to get Edge & TestComplete to work together as the other browsers do?
FWIW, Windows also displays "Google - Microsoft Edge" when Alt+Tabbing between windows.
- tristaanogreEsteemed Contributor
Edge is it's own monster. Honestly, I don't know. However, even for your existing browser, that code should work. That contentDocument.title is part of the actual HTML document for the page so it is a global property available no matter what the browser. If your intent is to work in multiple browsers, that would be the best practice to follow.
- Marsha_RModerator
Have you checked all these settings?
https://support.smartbear.com/testcomplete/docs/app-testing/web/general/preparing-browsers/edge.html
- bo_roopContributor
Yes, the browser is configured properly and TestComplete settings have been applied. The browser is recognized as Edge so I know it's working.
It's just the difference in the WndCaption that I'm noting. :(
- Marsha_RModerator
Then I would go with tristaanogre's solution. It should work for all the browsers.
Related Content
- 13 years ago
- 2 years ago
Recent Discussions
- 18 hours ago
- 18 hours ago
- 5 days ago