svenjatzu Posted September 20, 2019 Posted September 20, 2019 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 the php is 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
Danp2 Posted September 20, 2019 Posted September 20, 2019 Can't really make heads or tails of your post, but you should look into using _IEFormElementSetValue instead of Send(). Latest Webdriver UDF Release Webdriver Wiki FAQs
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now