Dear all,
in one of my TestSuites I open multiple browser tabs for multiple domains, e.g. in this case using Chrome.
After TestSuite ends, I want to close them in teardown section.
But counting how many I have opened and then "blindly" closing a certain amount of active tabs does not feel right to me.
Also closing the whole browser window does not.
Is there any way to either "remember" each opened tab (so they can be precisely closed afterwards) or do get a tab in e.g. Chrome by its domain in Ranorex?
thanks!
Get browser tab by domain?
Re: Get browser tab by domain?
Hi, are the tabs you open always the same within the suite? If yes, do they get their own repository items or is there focusing/whitelisting that prevents it?
You do not have the required permissions to view the files attached to this post.
Re: Get browser tab by domain?
Hello, no, they do not have their own repository item, there is just one DOM object with repo path:
so at runtime I do not know the page title.
Of course I could track and save all opened page titles, but I wonder if there isn't a better (simpler) solution to get a browser Ttab by domain?
Code: Select all
/dom[@domain=$myDomain and @state='complete']
Of course I could track and save all opened page titles, but I wonder if there isn't a better (simpler) solution to get a browser Ttab by domain?