[Test Setting Page] [Keys] [Branch] [EVAL] [Jumps] [Loops] [Runtime] [Sub-Return] [Various Images]
Advanced Commands Test Setting Page
| Quality2Threshold | number (try between 30 and 40) |
| ExperimentalContinuationLimit | number |
| isPersistent | “true“ |
| ScreenshottingMode | “device-screen” (high resolution screenshot (‘experimental’ style)) “browser-window” (old ‘non experimental’ style) |
| maxRuntimeMinutes | number (more than 60) |
Keys
| CTRL + → | rotate clockwise |
| CTRL + ← | rotate counter clockwise |
| CTRL + R | refresh |
Branch
| !a | nicht a |
| a,b,c!d,e,f | (a | b | c) & !d & !e & !f (a | b | c) & !(d | e| f) |
| en,de,es | en,es Natalie: Action wird ausgeführt in Branches en und es. Jenny: Action wird ausgeführt wenn der Branch en ist, oder es ist. |
| Frage: Soll diese Action im aktuellen Branch ausgeführt werden? Antwort: Wenn branch en oder es ist Code: ($BRANCH==”en”) || ($BRANCH == “es”) |
EVAL Statements
Annotation
| & && | and (stops after the first argument is true) and (checks both arguments) |
| || | or |
Sendkeys
EVALsendkeys("any text",100)Parse German Number Format
EVALstr_replace(",", ".", str_replace(".","", $CLIPBOARD))Checks with Custom Error Messages
FINDimageEVAL$FLAG || error('specific failure description')Jumps
Normal Jump
JUMP(T/F)any name… some more actions …
TAG#any nameJump based on clipboard value
JUMPscr($CLIPBOARD)Loops
Simple Loop
TAG#any name… some more actions …
JUMP (T/F)any nameMaximum Loop Passes
(Option 1 – longer but better readable)
TAG#start… clicking or something …
EVALset("counter", get("counter")+1) < 10JUMP (F)#outJUMP (T)#startTAG#outMaximum Loop Passes
(Option 2 - shorter with && operation)
TAG#start... clicking or something ...
FINDsomethingEVALset("counter", get("counter")+1) < 3 && $FLAGJUMP (T)#startLimit the Time that a Loop Runs
EVALtime() - set("time", get("time") || time()) < 10 && ....Runtime for Blocks
EVALset("time", time())... some actions ...
EVALtime() - get("time")Maximum Runtime for Blocks
EVALset("time", time())TAG#start... some actions ...
EVALtime() - get("time") > 100 && error("More than 100 seconds passed. Stopping")JUMP#startSub - Return
With JUMP sub:test you set the base of the following jump session
The command makes you jump to the TAG #sub:test
With the Jump #return:test you jump back to the place where you started (set the baseline)
JUMPsub:any name... some more actions ...
TAG#sub:any name... some more actions ...
JUMPreturn:any nameCombined Image Search
You have different images that show up randomly. That's how you can check if one of them is appearing.
FINDimage1EVALset("result", $FLAG)FINDimage2EVALset("result, $FLAG || $result)FINDimage3EVALset("result, $FLAG && $result)