Jump to content

How to get new Browser Window as object


Recommended Posts

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)")

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...