Jump to content

Recommended Posts

Posted

Hey im in a deep thought about how to get this script clicked where i want it to click but it doesnt do : /

;formular ausfüllen    DATUM
#include <Array.au3>
#include <IE.au3>
Global $oIE =  _IECreate("https://.......")                 ;;öffne 
_IELoadWait($oIE)
$oForm = _IEFormGetObjByName($oIE, "errorForm")                                 ;;suche nach dem feld
Local $oInputFile = _IEFormElementGetObjByName($oForm, "dateFrom")              ;;vergleiche name vom feld
_IEAction($oInputFile, "focus")                                                 ;;focus auf die eingabe setzen
_IEAction($oInputFile, "selectall")                                             ;;eventuelles eingegebenes makieren
Send(@YEAR&"-"&@MON&"-"&@MDAY)                                                  ;;aktuelles Damut eingeben
Local $oInputFile = _IEFormElementGetObjByName($oForm, "message")               ;;Feld suchen
_IEAction($oInputFile, "focus")                                                 ;;
_IEAction($oInputFile, "selectall")                                             ;;
Send("is unreachable")                                                          ;;Suchkriterium eingeben
Local $oSelect = _IEFormElementGetObjByName($oForm, "groupBy")                  ;;vergleiche name vom feld
_IEAction($oSelect, "focus")                                                    ;;
_IEFormElementOptionSelect($oSelect, "user", 1, "byText")                       ;;FEld user suchen
Local $oInputFile = _IEFormElementGetObjByName($oForm, "displayCount")          ;;vergleiche name vom feld
_IEAction($oInputFile, "focus")                                                 ;;focus auf die eingabe setzen
_IEAction($oInputFile, "selectall")                                             ;;eventuelles eingegebenes makieren
Send("2")                                                                       ;;nur 1 ergebnis anzeigen
Local $oSubmit = _IEGetObjById($oIE, "filterButton")                            ;;alle ergebnisse auswählen
_IEAction($oSubmit, "click")                                                    ;;ergebnis auswählen
_IELoadWait($oIE)
MsgBox(1,"","",2)
Local $oSubmit = _IEGetObjById($oIE, "toggleButton")                            ;;filtern klicken
_IEAction($oSubmit, "click")                                                    ;;filtern klicken
;~ _IELoadWait($oIE)
MsgBox(1,"","",2)

the point is

the order in the code is insert data and filter

then set items:2 (send("2"))

then "select all" button

but it goes the wrong way, first it starts select all then set items:2

thats strange. whats wrong in the code?

next thing is therees another button that need to be clicked at the end

"processed" but i cant make it klick on it

image.png.c181a975924fcd2d32c2ff0b1e3580b8.png

 

the php is

image.png.313e29aa8ecf24a32bcd87abf0ea4ba2.png

someoneplease can halp me with that?

another thing is due to the url is intranet it cant be accessed from outside by browser : /

Help please

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
×
×
  • Create New...