Forum Discussion
Hi,
the German expression in the highlighted log entry "und 1 weitere Seite" is in English "and 1 additional page".
When I double click the highlighted entry it is going to the last line of script code:
Sys.Browser(testedBrowser).Page(cleanupScriptUrl).Close();
When I double click the last log entry it is going to the very same line of code.
Best guess is that, what is happening, is that when you tell the test to go to the new URL for the clean up script, that is occurring, not on the new tab but potentially on the existing web page that is already open. So, you really don't have two pages open, but a single one so, when you call the "Close" command, it closes the only page open which ends up closing the whole browser. I'd do a bit of rework with your code to ensure that, when you open the new tab, you send your navigate code to that new page (probably your default home page or "blank" tab).
- S_Seydel8 years agoContributor
During a normal script run your guess is correct, indeed the url is called not in the new opened tab, but in the tab which was opened with the browser start. So here is really a behaviour to improve.
However when the script is run in debug mode the url is called correctly in the new tab. From that point on the problematic behaviour regarding closing the browser instead of the page only stays exactly the same.
During my investigation of the problem I had to notice more unpleasant behaviours of TestComplete with Edge. Objects are highlighted at different locations than they are visible on the screen, in object browser alert windows are not existent and the object browser does only show completely black pictures of the whole object hierarchy of the edge process.
Therefore I think it's better to open a support case.
Thank you for your help.
- AlexKaras8 years agoChampion Level 3
Hi,
What version of TestComplete are you using?
> object browser does only show completely black pictures of the whole object
Yes. This is also the case for Chrome. My guess is that this is caused by browser's engine specifics...
> Objects are highlighted at different locations than they are visible on the screen
https://community.smartbear.com/t5/TestComplete-Functional-Web/TestComplete-unable-to-click-buttons-links-in-Edge-browser/m-p/123442#M27875 might be the reason...
Also, if you are not using the latest version of TestComplete, check that Scaling Level for your display is set to 100% and page zoom is set to 100% as well.
- S_Seydel8 years agoContributor
Hi,
I use the latest version of TestComplete, 12.30.1651.7.
The Favorites bar in edge is disabled and the browser was restarted.
Related Content
- 4 years ago
Recent Discussions
- 6 days ago
- 6 days ago
- 9 days ago