Jump to content

Open and return to multiple browser windows.


Recommended Posts

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?

Link to comment
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!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...