Sign in to follow this  
Followers 0
faustf

_ie questions automate

3 posts in this topic

hi guy i try to create  a new shipment  in this  site  www.spediamo.it   , i  just  login  with succesful , but  when i try  to click  over id add_new_ship    link is 

 
 
 
     
    not  work   this is a  script
; Script Start - Add your code below here
#include <IE.au3>
#include <MsgBoxConstants.au3>
#include <StringConstants.au3>
#include <InetConstants.au3>
#include <WinAPI.au3>
#include <WinAPIsysinfoConstants.au3>
#include <WindowsConstants.au3>
#include <GDIPlus.au3>
#include <Misc.au3>
#include <INet.au3>
#include <Excel.au3>
#include <File.au3>
#include <Array.au3>


_Spediamo_it_WEB()

Func _Spediamo_it_WEB()

    If ProcessExists("iexplore.exe") Then ; Check if the internet esplorer process is running.
        ProcessClose("iexplore.exe")
    EndIf

    Global $oIE = _IECreate("http://www.spediamo.it/", 0, 1, 1, 1) ; <--- 0011 invisible explorer  <--- 0111 visible explorer
    _IELoadWait($oIE)
    Local $oForm = _IEGetObjByName($oIE, "loginform")
    Local $oUsername = _IEFormElementGetObjByName($oForm, "username")
    _IEFormElementSetValue($oUsername, "faust@yopmail.com")
    Local $pass = _IEFormElementGetObjByName($oForm, "password")
    _IEFormElementSetValue($pass, "kronos@123")
    Local $oBotton_SingIn = _IEGetObjById($oIE, "click_for_login")
    _IEAction($oBotton_SingIn, "Click")
    _IELoadWait($oIE)
    Local $oDiv = _IEGetObjById($oIE, "add_new_shipment")
    _IEAction($oDiv, "focus")
    _IEAction($oDiv, "Click")
    _IELoadWait($oIE)


EndFunc   ;==>_Spediamo_it_WEB

some one  can help me???  thankz

 

Share this post


Link to post
Share on other sites



i  answer me  i  must  use Sleep(3000)

because is  to much fast

is not possible  erase  a  topic  when i do  mistake??

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

@faustf no, we do not delete posts; you can modify the first post to say that it is resolved. Perhaps, as has been suggested several times to you now, you use this as a reminder to look over your script before impulsively posting for help.

Edited by JLogan3o13

√-1 2^3 ∑ π, and it was delicious!

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  
Followers 0