vinux Posted July 7, 2009 Share Posted July 7, 2009 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 More sharing options...
Juvigy Posted July 7, 2009 Share Posted July 7, 2009 When you click the link and the new pop up window appear $oIE still points to the old window. You need to assign it to the popup using _IEAttach. Link to comment Share on other sites More sharing options...
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