Sign in to follow this  
Followers 0
sdfg4545

How to get new Browser Window as object

2 posts in this topic

How can I get the handle of a IE window (browser) that pops up after login to the site?

//******************************

$oIE = _IECreate ("https://ssl.accesstocare.on.ca/")

$oForm = _IEFormGetObjByName ($oIE, "f")

;run("C:\Program Files\Internet Explorer\IEXPLORE.EXE https://ssl.accesstocare.on.ca/")

Winwaitactive("Better Access To Care - Windows Internet Explorer")

Sleep(5000)

Send("username{TAB}")

Send("password")

_IEFormSubmit ($oForm)

WinWaitActive(">> Better Access To Care - Windows Internet Explorer") ----- NEW BROWSER WINDOW!!!!

HELP HERE!!!!!

That login will cause a new browser to open: ">> Better Access To Care - Windows Internet Explorer"

I need to get that new browser in an object, so I can click a link in it.

--- this line wont work

$oNewBrwsrWindow= _IEGetObjByName ($oIE, ">> Better Access To Care - Windows Internet Explorer")

--- this line will work, but what to put as first parameter?????

_IELinkClickByText ($oNewBrwsrWindow, "Wait Time Information Systems (WTIS)")

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