Forum Discussion

ttran's avatar
ttran
Occasional Contributor
14 years ago

Testcomplete 8 and FireFox 3.6+

Hi,



I am trying to use Testcomplete 8 for Web testing on FireFox 3.6+

My objective is to be able to use multiple window, however it's really difficult.



To start I use:

call TestedApps.firefox.run(1,True)

Frame1 = sys.process("firefox").Window("MozillaUIwindowClass", "*", 1)

And then some other codes to control the page.



The problem start when I open up the 2nd page

call TestedApps.firefox.run(1,True)

Frame2 = sys.process("firefox").Window("MozillaUIwindowClass", "*", 2)



Here lies the problem,

Frame2 after sometimes it is being seen as -> sys.process("firefox").Window("MozillaUIwindowClass", "*", 1)

and of course Frame1 is now shifted to-> sys.process("firefox").Window("MozillaUIwindowClass", "*", 2)



The problem here is this change is not immediate after I launch the new Window.



Does anyone has any suggestion/tips/hints/walkthrough on how to proceed?



Thank You,

1 Reply

  • Hi,



    Don't use the browser's windows - address pages loaded in your browser directly. They're children of the browser's process.

    See the "Page Method (Process Objects)" help topic.