Ask a Question

14.40 upgrade prevents multiple browsers open?

SOLVED
wmtan01
Contributor

14.40 upgrade prevents multiple browsers open?

Hi,

 

We recently updated to v14.4 and after upgrading, our tests stopped running.

 

What our test does is open 3 different pages in chrome, firefox and IE and let them interact with each other. but after upgrading once chrome opens up, the test is unable to find objects in the firefox browser. I can see it in the Object Browser panel but highlighting it in the namemapping fails, saying one of the parent objects cannot be found. It seems like TestComplete cannot search across all the opened browsers for the page, I've tried doing an extended find for the page but it still did not work. Looks like since Chrome opened up first, TestComplete is just searching inside the Chrome browser object for the pages

 

It was working fine ever since we've started using TestComplete 2 years ago. 

 

Anyone know if I'm just missing a configuration with 14.4 or if someone else has encountered this issue and has reached out to Smartbear?

13 REPLIES 13
tristaanogre
Esteemed Contributor

That is actually correct... the "browser" navigations in KWT actually set an internal variable of "current Browser" so, when you launch a new browser, it uses that internal variable.  Not sure why this wasn't doing so in previous versions of the tool for you.

 

You should set "current browser" before you try and use the browser controls in the KWT so as to make sure that you are always pointing to that correct browser variable value.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

Hi,

 

That was my idea of what was causing this issue, it's failing to switch current browser to the one containing the page I am targetting. But I don't think this is something impossible as the documentation states:

 

However, in order to reduce ambiguous recognition issues, TestComplete can select the appropriate browser depending on the URL of the requested page. If the Browser object that was returned by the Sys.Browser() method does not contain the Page object with the specified URL while another running browser displays such a page, TestComplete automatically reassigns the method’s resulting value to the Browser object that corresponds to the browser displaying the page with the requested URL.

 

From: https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/sys/browser-method-sy...

 

If a page I am looking for is in another browser. TestComplete will return the correct browser object for me to use containing that page which I believe TestComplete has been doing for us the past few releases.

tristaanogre
Esteemed Contributor

Then it sounds like that part may not be working properly.  At this point, I would suggest, if you haven't already, to open up a support ticket with the SmartBear team as this appears to be a bug in the tool and not something that can be corrected by a user.

https://support.smartbear.com/message/?prod=TestComplete


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

I was hoping this was just a configuration that I missed. Or something that was new in 14.40. Thanks for taking the time to try and debug this! I'm just waiting now for what technical support would say.

cancel
Showing results for 
Search instead for 
Did you mean: