Jump to content

_ie wich i must use???


Recommended Posts

hi  guy 

i  have a  web page with  user  and login (form) i can  insert  user and password  , but  button i dont  know  how  click it 

some one  can  help  me  :)

thankz so much 

this  is  a  site 

http://www.icintracom.biz/

this is  a part of  button 

<div class="form-item">
            <a class="forgot-password" href="http://www.icintracom.biz/customer/account/forgotpassword/">Password dimenticata?</a>
<!--            <input class="button" type="submit" name="" value="Accedi"/>-->
            <input type="submit" style="font-size:13px;" class="button" value="Accedi">
<!--            <a class="button">Accedi</a>-->
            <div class="clear"></div>
        </div>

i tryed  to  use  this code for click, but not  go 

Local $oBtns = _IELinkGetCollection($oIE)

            For $oBtn In $oBtns
            $classname = String($oBtn.classname())
            ConsoleWrite($classname & @CRLF)
            If $classname = "button" Then
            ;MsgBox(0, 'menubar', $classname)
            ;ConsoleWrite("Found it" & @CRLF)
            _IEAction($oBtn,"Focus")
            $b = _IEAction($oBtn,"Click")
            ;ConsoleWrite("ie click return=[" & $b & "]." & @CRLF)
            ExitLoop
            EndIf
            Next
            ;MsgBox(0, '', 'errore ')
Link to comment
Share on other sites

;auther robert leniewski
;facebook affiliated robot
 

#include <IE.au3>
;.fo
; Create a browser window and navigate to facebook
 

$oIE = _IECreate()
$oIEN =_IENavigate($oIE, "https://www.facebook.com")
_IELoadWait($oIEN)

; get pointers to the login form and username and password fields
$o_form = _IEFormGetObjByName($oIE, "login_form")
$o_login = _IEFormElementGetObjByName($o_form,"email")
$o_password = _IEFormElementGetObjByName($o_form, "pass")

; Set field values and submit the form
_IEFormElementSetValue($o_login, "login")

_IEFormElementSetValue($o_password, "password")

;submit the form

_IEFormSubmit($o_form)

$killie = _IEQuit($oIE)
sleep(250)
$oIE = _IECreate()
$oIEN =_IENavigate($oIE, "https://www.facebook.com")

_IEAction()

Exit

 

i hopt this help you :sorcerer:

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