cancel
Showing results for 
Search instead for 
Did you mean: 

Addressing FireFox Tabbed URLs

Occasional Contributor

Addressing FireFox Tabbed URLs

Hi All,



I've run into a problem with TC v7.5 and the FireFox v3.5.5 browser.



I need to be able to open up multiple versions of the AUT (IE & FF). The IE script works fine, since each browser is a separate process. In FireFox, TC only sees 1 process (even if there are 2 or more browsers open).  I've tried to use tabbed browsing in FF, and that works to a degree.



I need to navigate each FF tabbed window to the same url.  Inspecting the processes, the Page() object will sometimes have the identical Page() object with the same url.  I'm not sure how to differentiate between the two similar objects. 



In playing around with FF and Tabs, I was able to get distinct Page() objects if I used Ctrl-T when opening the new url. This gives me the objects :



Page('http:\\server\page1.html')     (tab 1)

and

Page('http:\\server\page1.html',1)  (tab 2)

 

Has anyone solved the problem of addressing the FireFox tabs that are on the same url?



Thanks!



Steve
5 REPLIES 5
Moderator

RE: Addressing FireFox Tabbed URLs

Hi Steve,




You can use the second parameter of the Page method, Index, to address pages in your case. Let me quote the "Page Method (Process Objects)" help topic:




>>>

Index




This parameter is only used if you open two or more pages with the same URL in the browser. In this case, these pages have the same URL, so to distinguish the pages, TestComplete uses the Index parameter. The parameter specifies the order in which the pages were opened. If there is only one page with the specified URL, the Index parameter is not used.

<<<




The actual name of the property used to differentiate among pages is ObjectGroupIndex. To see this property in the Object Browser, you need to enable the "Show hidden properties" option (Tools | Options | Engines | General).




I hope this helps.

--
Dmitry Nikolaev
Customer Care Manager
TestComplete, QAComplete
Occasional Contributor

RE: Addressing FireFox Tabbed URLs

Hi David,



Thanks for your reply.  I have now turned on the option, "Show hidden properties" .  I don't think that it made any real difference in this issue...



I've finally been able to correct my logic to accurately select the correct FF tab.  I ended up clicking on the Tab Select button (far Right side of screen), then using keys to press the [Down] button to select the Tab 1 through N.  It's clumsy, but it works.



My next problem - I'm trying to get the html page of  the newly activated FF tab. I have placed numerous sys.process('firefox').Refresh() commands to make sure that I'm looking at the code behind the correct tab. I'm constantly getting the old ("stale") version of the html code from the prior FF tab. 



Interactively (and in the debugger), I can switch between the FF tabs, click on the FreshAll  button in the Object Explorer. The object tree will get updated correctly. Under script control, I'm getting the old tabs code.



Can anyone reproduce this FireFox and Tab code situation in a script??



Thanks In Advance!



Steve
Community Hero

RE: Addressing FireFox Tabbed URLs

Hi Steve,



Have you seen these two articles:

http://www.automatedqa.com/techpapers/testcomplete/tabbed-browsing/

http://www.automatedqa.com/techpapers/testcomplete/cross-browser-testing/



They may appear to be relevant to your problem...



Regards,

      Alex

      [TeamAQA]

____

[TeamAQA] members are not employed by AutomatedQA Corp. but are just

volunteers who have some experience with the tools by AutomatedQA Corp.

and a desire to help others. Postings made by [TeamAQA] members may

differ from the official policies of AutomatedQA Corp. and should be

treated as the own private opinion of their authors and under no

circumstances as an official answer from AutomatedQA Corp.

[TeamAQA] signature is used with permission by AutomatedQA Corp.

More information about [TeamAQA] and its members is available at

http://www.automatedqa.com/support/teamaqa/

================================

 


Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members 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. Postings made by [Community Expert Group] members
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.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Occasional Contributor

RE: Addressing FireFox Tabbed URLs

Hi Alexie,



Yes, I have seen those articles.  They were a help and a hindrance at the same time.  They gave me a good overview of the process and some good tips.  I tried the downloaded project and could not get it work properly... Spent about 4 hours trying to correct it.  Uggh!



I have uploaded a demo project to the Tech Support email with what I am seeing with the tabbed url pages in FireFox.



Thanks for the assist!



Steve
Moderator

RE: Addressing FireFox Tabbed URLs

Hi Steve,




We have already answered you via e-mail in the M0067600 query ("FireFox Tabbed Browser Problem - Bug?"). Let's continue our investigations via e-mail.

--
Dmitry Nikolaev
Customer Care Manager
TestComplete, QAComplete
New Here?
Join us and watch the welcome video:
API Testing Mistake #2
APITestingMistake#2
Top Kudoed Authors