Jump to content
Sign in to follow this  

_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 


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>

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)
            $b = _IEAction($oBtn,"Click")
            ;ConsoleWrite("ie click return=[" & $b & "]." & @CRLF)
            ;MsgBox(0, '', 'errore ')

Share this post

Link to post
Share on other sites

;auther robert leniewski
;facebook affiliated robot

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

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

; 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


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




i hopt this help you :sorcerer:

Share this post

Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...