Jump to content

How to click this button in IE


Recommended Posts

Please help me. I want to click the logout button on this page, without mousemove function.

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US"><head><title>Internet Access</title>
</head><body bgcolor="#FFFFFF">
      <table width=100% bgcolor=#336600 height=10%>
      <tr><td align=center width=100%><font color=white size=6>Broadband Internet Access</font></td>
      <tr>
      </table>
      <body bgcolor='#FFFFFF' ><center><br><br><font color=red size=5>Warning : </font><font size=4 color=#003333>Session already exists!
                    <form name=form1 action='RadClient.cgi' method=post>
                    <input type=hidden value='tcil_2' name=username> </input>
                    <input type=hidden value='172.24.11.248' name=clientIp> </input>
                    <br>
                <center><font size=4>Click on the Logout button to disconnect.</center>
                    <br><br><center><input type=submit style='background-color:#336600;color:white' value=LogOut name=Submit></input></center><br>
Link to comment
Share on other sites

Try This: If that doesn't work change 'Submit' to 'LogOut'. It should work using Submit though

;Login Button
    $oLogoutBtn = _IEGetObjByName($oIE, 'Submit')
    _IEAction ($oLogoutBtn, "click")

Edit: This will require you to have #include<IE.au3>, just in case you didn't know that.

Edited by dufran3
Link to comment
Share on other sites

Try This: If that doesn't work change 'Submit' to 'LogOut'. It should work using Submit though

;Login Button
    $oLogoutBtn = _IEGetObjByName($oIE, 'Submit')
    _IEAction ($oLogoutBtn, "click")

Edit: This will require you to have #include<IE.au3>, just in case you didn't know that.

Thanks buddy, U wont believe I tried this for whole day and couldnt get it to work.
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...