WEB-Arbeit automatisieren mit dem MPR

Moderator: MVogt

Post Reply
User avatar
Theo_Gottwald
Posts: 367
Joined: 03. Oct 2009, 08:57
Location: Herrenstr.11 * 76706 Dettenheim
Contact:

WEB-Arbeit automatisieren mit dem MPR

Post by Theo_Gottwald » 17. Jan 2018, 11:50

Manchmal will man einfach nur schnell sich auf einer Seite einloggen,
oder mal ein paar aktualisierte Daten auslesen.

Dazu verwendet man am besten den Internet-Explorer, denn nur der wird vom MPR optimal unterstützt.
Hier fragte nun eine Anwender "Wie kann ich den IE starten und Kommandozeilenparameter mitgeben?"

Konkretes Beispiel, man will den IE im "Private Mode" starten und daneben noch eine URL mitgeben.
Dann geht das so.

Code: Select all

VAR\$$URL=http://helpfiles.matrix42-web.de/2015_DE/M42_WebDocu.htm#WM/PWM/SWM/SETUP/Referenz/Sections/Options/SETUP_Section_24_Options_Name.htm
GEP\iexplore
VAR\$$IEX=$v1$
EXE\$$IEX -private $$URL
So jetzt machen wir ein Skript draus, das eine WEB-Site ausliest und Informationen von ebenda extrahiert.
Im Skriptpfad wird eine Textdatei erzeugt mit den auf der WEB-Site gefundenen Elemeten.
Darunter sind sichtbare genauso wie unsichtbare Elemente.

Code: Select all

VAR\$$URL=http://helpfiles.matrix42-web.de/2015_DE/M42_WebDocu.htm#WM/PWM/SWM/SETUP/Referenz/Sections/Options/SETUP_Section_24_Options_Name.htm
GEP\iexplore
VAR\$$IEX=$v1$
EXE\$$IEX -private $$URL

VAR\$$OUT=?path\Result.txt
DEL\$$OUT
VAR\$$TXA=
STW\ieframe\internet explorer|w369
SPC\internet explorer_server\*|w369
VAR\$$AFO=42\\\
FEA\$$AFO|255|DoItNow|$$TXT
MBX\!
@

:DoItNow
CHR\7>$$TZ7
SBD\|$$TXT|$$TZ7|1>$$pfd '# Pfad
SBD\|$$TXT|$$TZ7|2>$$nme '# Name
SBD\|$$TXT|$$TZ7|3>$$val '# Value
SBD\|$$TXT|$$TZ7|4>$$dsc '# Description

VAR\$$TXA=$$TXA$crlf$ Pfad: $$pfd$crlf$
VAR\$$TXA=$$TXA$crlf$ Name: $$nme
VAR\$$TXA=$$TXA$crlf$ Value: $$val
VAR\$$TXA=$$TXA$crlf$ Descr.: $$dsc
VAR\$$TXA=$$TXA$crlf$------------------------------$crlf$
ATF\$$OUT<$$TXA
@
Man erhält nun eine Textdatei mit folgenden Infos ( hier nur ein kleiner Auszug!):
Basierend auf diesen Informationen könnte man nun zum Beispiel mit dem AFO\-Befehl auch die Elemente nacheinander anklicken.

Code: Select all

 Pfad: 0/13/2/1/1/0/0/1

 Name: Physical (Empirum)
 Value: #WM/PWM/MX42_PWM.htm%3FTocPath%3DMatrix42%2520Client%2520Management%7CPhysical%2520(Empirum)%7C_____0
 Descr.: 
------------------------------

 Pfad: 0/13/2/1/1/0/1/0/0/1

 Name: Release Informationen
 Value: javascript:void(0);
 Descr.: 
------------------------------

 Pfad: 0/13/2/1/1/0/1/1/0/1

 Name: Matrix42 DBUtil
 Value: #WM/PWM/DBUtil/DBUtil.htm%3FTocPath%3DMatrix42%2520Client%2520Management%7CPhysical%2520(Empirum)%7CMatrix42%2520DBUtil%7C_____0
 Descr.: 
------------------------------

 Pfad: 0/13/2/1/1/0/1/2/0/1

 Name: Matrix42 Management Console
 Value: javascript:void(0);
 Descr.: 
------------------------------

 Pfad: 0/13/2/1/1/0/1/3/0/1

 Name: - Client Software -
 Value: javascript:void(0);
 Descr.: 
------------------------------

 Pfad: 0/13/2/1/1/0/1/3/1/0/0/1

 Name: Data Collector
 Value: #WM/PWM/INV/EDC/EDC_Empirum_Data_Collector.htm%3FTocPath%3DMatrix42%2520Client%2520Management%7CPhysical%2520(Empirum)%7C-%2520Client%2520Software%2520-%7CData%2520Collector%7C_____0
 Descr.: 
------------------------------

 Pfad: 0/13/2/1/1/0/1/3/1/1/0/1

 Name: Easy Recovery Client
 Value: #WM/PWM/ER/Produktbeschreibung.htm%3FTocPath%3DMatrix42%2520Client%2520Management%7CPhysical%2520(Empirum)%7C-%2520Client%2520Software%2520-%7CEasy%2520Recovery%2520Client%7C_____0
 Descr.: 
------------------------------

 Pfad: 0/13/2/1/1/0/1/3/1/2/0/1

 Name: Personal Backup Client
 Value: #WM/PWM/PB/Client/Beschreibung_PB.htm%3FTocPath%3DMatrix42%2520Client%2520Management%7CPhysical%2520(Empirum)%7C-%2520Client%2520Software%2520-%7CPersonal%2520Backup%2520Client%7C_____0
 Descr.: 

....
------------------------------

 Pfad: 0/20/0/13/0/0/0

 Name: Asset Management
 Value: http://helpfiles.matrix42-web.de/2015_DE/Content/WM/CWM/SVS_Asset/SVS_Asset.htm
 Descr.: 
------------------------------

 Pfad: 0/20/0/13/1/0/0

 Name: Contract Management
 Value: http://helpfiles.matrix42-web.de/2015_DE/Content/WM/CWM/SVS_CTM/Contract_Mgt.htm
 Descr.: 
------------------------------

 Pfad: 0/20/0/13/2/0/0

 Name: Lizenzmanagement
 Value: http://helpfiles.matrix42-web.de/2015_DE/Content/WM/CWM/SVS_LIC/SVS_LIC_Mgm.htm
 Descr.: 
------------------------------

 Pfad: 0/20/0/13/3/0/0

 Name: Service Catalog
 Value: http://helpfiles.matrix42-web.de/2015_DE/Content/WM/CWM/SVS_SVC/Service_Catalog.htm
 Descr.: 
------------------------------

 Pfad: 0/20/0/13/4/0/0

 Name: Service Desk
 Value: http://helpfiles.matrix42-web.de/2015_DE/Content/WM/CWM/SVS_SVD/Service_Desk.htm
 Descr.: 
------------------------------

 Pfad: 0/20/0/13/5/0/0

 Name: Administration
 Value: http://helpfiles.matrix42-web.de/2015_DE/Content/WM/CWM/SVS_ADM/6341.htm
 Descr.: 
------------------------------
...

 Pfad: 0/32

 Name: Email Notifications
 Value: 
 Descr.: 
------------------------------

 Pfad: 0/33

 Name: I want to receive an email when...
 Value: 
 Descr.: 
------------------------------

 Pfad: 0/34/1

 Name: a reply is left to one of my comments
 Value: 
 Descr.: 
------------------------------

 Pfad: 0/35/1

 Name: a comment is left on a topic that I commented on
 Value: 
 Descr.: 
------------------------------

 Pfad: 0/36/1

 Name: a comment is left on any topic in the Help system
 Value: 
 Descr.: 
------------------------------

 Pfad: 0/39

 Name: An email has been sent to verify your new profile.
 Value: 
 Descr.: 
------------------------------

 Pfad: 0/40

 Name: Please fill out all required fields before submitting your information.
 Value: 
 Descr.: 
------------------------------


Post Reply

Return to “Package Robot”

Who is online

Users browsing this forum: No registered users and 5 guests