MadPoet Posted August 6, 2008 Posted August 6, 2008 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?
herewasplato Posted August 7, 2008 Posted August 7, 2008 (edited) WinSetTitle() Edit: Open one window WinWait for that window WinSetTitle Lather, rinse, repeat. Edited August 7, 2008 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size]
MadPoet Posted August 8, 2008 Author Posted August 8, 2008 WinSetTitle()Edit: Open one windowWinWait for that windowWinSetTitleLather, 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!
herewasplato Posted August 8, 2008 Posted August 8, 2008 ...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]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now