Have Multiple Browser Windows open at the same time. (Same browser type, say Firefox)
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have Multiple Browser Windows open at the same time. (Same browser type, say Firefox)
Just curious to understand how TestComplete works.
Say I have 2 firefox browser windows open. For arguments sake say they are displaying different url values.
Now I have the following line of code.
Aliases.browser.Page("*").FindChild(....)
So 2 firefox browser windows, no page url reference to work from. When TestComplete tries to find the child object what does TestComplete do?
Would it check both browsers for the child? Would it only check one? If only one, what controls which one it looks at?
thanks for the info.
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
> Would it check both browsers for the child?
No. Just the first one that meets child's parent search criteria (i.e. browser.Page('*') ).
/Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok thanks. Follow-up question.
"The first one that meets..." If I continue to have multiple firefox browsers open, and try to refer to an object that exists in one of them (without providing the url reference), is there another way that I could affect which one TestComplete looks at first?
For instance, Start firefox browser1 then start browser2, if I click one of the browsers to make it active/have the focus, would that impact the order that TestComplete searches? Some sort of browser state, that TestComplete starts with "active browser" for instance?
Or is the search just random, and happens behind the scenes?
thanks again.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
> Or is the search just random, and happens behind the scenes?
Actually, this is a question to Support as I don't know implementation.
But to my knowledge and experience, the search is random if browser name and/or page url are not specified.
P.S. Is there any reason to not specify browser name and page URL for Aliases? To make them dynamic, you may specify them as project variables and set those variables to required values when starting the browser and navigating to the page.
/Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
