Jump to content

Trouble with Internet Explorer 7


pallavi
 Share

Recommended Posts

Hello All,

I have been trieng to write a sample code to handle websites.. i can run successfully that in explorer 6. but not in explorer 7..

here i mentiond sample script:

#include <IE.au3>

#include <Array.au3>

#include <Constants.au3>

$oIE = _IECreate ("http://www.smsc11.com/corp/corporate/entry.jsp");

_IELoadWait ($oIE)

WinActivate("WAY2SMS Corporate Login")

WinSetState("WAY2SMS Corporate Login","",@SW_MAXIMIZE);

controlEnable ("WAY2SMS Corporate Login", "", "userid" )

ControlFocus ("WAY2SMS Corporate Login", "", "userid" );

$o_object = _IEGetObjById ( $oIE, "userid");

_IEDocInsertText ( $o_object, "ABC");

Sleep(100)

$o_object = _IEGetObjByName ( $oIE, "pass");

_IEDocInsertText ( $o_object, "xyz");

Sleep(100)

With thanks & regards,

Pallavi

Link to comment
Share on other sites

How about this instead?

#include <IE.au3>
    
$oIE = _IECreate ("http://www.smsc11.com/corp/corporate/entry.jsp");

$oUser = _IEGetObjByName ($oIE, "userid")
$oPass = _IEGetObjByName ($oIE, "pass")
$oSubmit = _IEGetObjByName ($oIE, "Submit")


_IEFormElementSetValue ($oUser, "user")
_IEFormElementSetValue ($oPass, "pass")

_IEAction ($oSubmit, "click")
_IELoadWait($oIE)

Definitely install DebugBar - Helps a lot with this stuff.

Edited by exodius
Link to comment
Share on other sites

Hello,

Is the autoit supports the Internet explorer 7 ?

i runed above mentioned code as ; but it was not exisuted in IE 7; but i can run the same in IE6,

#include <IE.au3>

$oIE = _IECreate ("http://www.smsc11.com/corp/corporate/entry.jsp");

$oUser = _IEGetObjByName ($oIE, "userid")

$oPass = _IEGetObjByName ($oIE, "pass")

$oSubmit = _IEGetObjByName ($oIE, "Submit")

_IEFormElementSetValue ($oUser, "user")

_IEFormElementSetValue ($oPass, "pass")

_IEAction ($oSubmit, "click")

_IELoadWait($oIE)

Edited by pallavi
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...