Jump to content

IELoadWait


Recommended Posts

Hi Everyone,

autoit newbie here.. I need IELoadWait for a new pop up window which is the output of a link from a main IE window.

I have the following code.

$oIE = _IECreate ("http://somesite.url")

_IELoadWait ($oIE)

_IELinkClickByText ($oIE, "Link")

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

$oSelect = _IEFormElementGetObjByName ($oForm, "name2")

_IEFormElementOptionselect ($oSelect, "sometext", 1, "byText")

_IELinkClickByText ($oIE, "Link2")

upon hitting link2, a new IE window will pop up with the result, this is where i need to use IELoadWait as i need to have the output completed first before taking any action.

i've tried _IELoadWait ($oIE) but it didn't work as apparently, that one ($oIE) is for the initial URL specified at the start of the script.

i've also tried the following

$test = _IELinkClickByText ($oIE, "Link2")

_IELoadWait ($test)

but it doesn't seem to work too...

any help would be greatly appreciated.

thanks!

-vinux

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