Sign in to follow this  
Followers 0
MadPoet

Open and return to multiple browser windows.

4 posts in this topic

I'm writing a suite of test scripts for a flash game. What I need to be able to do is open multiple browser windows, then switch between them. I can open them no problem with Run, but once I leave the window I'm not sure how to get back. All of the window commands seem to be based off title, which is all well and good, except that the program I'm testing uses the same title in every screen. Is there a way to use the PID I get back from Run() and somehow switch to the associated window?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

WinSetTitle()

Edit: Open one window

WinWait for that window

WinSetTitle

Lather, rinse, repeat.

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

WinSetTitle()

Edit: Open one window

WinWait for that window

WinSetTitle

Lather, rinse, repeat.

I was going to argue about how I'm working with browser windows, and the Title changes a lot, but I think if I just make sure to change the title before I navigate away, then I'm just fine.

Thanks!

Share this post


Link to post
Share on other sites

...but I think if I just make sure to change the title before I navigate away, then I'm just fine.

Thanks!

Excellent point and solution!

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0