Forum Discussion
AlexKaras,
Thanks for the reply.
Can you give some example scripts on your step 2 and 3? Thanks.
I did some tests and here is what I found:
After I opened multiple Chrome browsers with the "--user-data-dir=C:\temp\userxxx" option, in TestComplete Object Browser, these Chrome browsers looked the same, all were shown as
Sys.Browser("chrome")
So I had no way to differentiate them. See screen shot:
As comparison, I used multiple IE browsers with "-private" option, and they could be differentiated in the Object Browser like:
Sys.Browser("iexplore"), Sys.Browser("iexplore", 2), Sys.Browser("iexplore", 3), etc.
So I could define them as different objects in my script and do tasks like loading login page, using different user ids and passwords to login, etc.
See screen shot:
As a matter of fact, I opened multiple instances of some Windows applications such as Notepad, Command prompt, all were shown in the Object Browser as differentiable ones:
It just looks odd that Chrome is treated differently when there are multiple instances.
I will look up the network suite option.
Thanks.
Hi,
> Sys.Browser("iexplore"), Sys.Browser("iexplore", 2), Sys.Browser("iexplore", 3), etc.
Actually, I expected to see the same for Chrome as well... I cannot say what Chrome browsers are displayed just like Browser("Chrome") on your screenshot, but considering that they have different indexes (again, as per your screenshot), I would try to reference Chrome processes the same way: Sys.Browser("Chrome"), Sys.Browser("Chrome", 2), etc. Have you tried this? Does it work? If it works, than I would consider it as an Object Browser display problem and report it to Support (https://support.smartbear.com/message/?prod=TestComplete).
- xyin9 years agoOccasional Contributor
AlexKaras,
Yes I tried those and got "object does not exist" error for Sys.Browser("Chrome", 2).
I opened a ticket with SmartBear and they admitted this is an issue.
Thanks.
- bbi9 years agoContributor
Just for your information, on W10 Pro or W7 Pro, with TC 12, the problem is resolved, we have the process index given in object spy.
- xyin9 years agoOccasional Contributor
bbi,
I think the scenario you mentioned is for multiple browser windows under one user profile, while mine needs multiple user profiles (see my earlier posting).
I still have the support ticket open with SmartBear and just had an update today saying there is no solution yet.