format: 'json' | 'text'
base64:
true: The result will be encoded in Base64
false: Plain text (default)
format time:
true: The time format will be human-readable foamrt.
e.g.,) 2017-10-17 12:34:56.789
false: The numeric value corresponding to the time for
the logged time according to universal time. (default)
e.g.,) 1508211296789

dbg.time.check()
-> A string like "00:01:23.456" will be returned.
default timer name will be used in case no arguments are specified.
dbg.time.check('timer1')
-> A string like "00:01:23.456" will be returned.

$ point 100 200
-> Show the pointer at x=100px, y=200px
$ point +10 +20
$ point -10 -20
-> Move the pointer from current position
$ point CSS-Selector -alignX 0.50-1(opt) -alignY 0.50-1(opt)
$ point #id
$ point .className
$ point .className index
$ point tagName
$ point tagName index
$ point label labelText index
-> Point the specified element
$ point center Center of the screen
$ point mouse Current mouse position
-> Point the specified position
$ point hide
-> Hide the pointer
$ point show
-> Show the pointer
$ point click -speed 500click speed in ms (opt:default=100)
-> Click the current position
$ point cclick -speed 500click speed in ms (opt:default=100)
-> Center click the current position
$ point rclick -speed 500click speed in ms (opt:default=100)
-> Right click the current position
$ point dblclick -speed 200click speed in ms (opt:default=100)
-> Double click the current position
$ point contextmenu
$ point focus
$ point blur
$ point change
-> Dispatch the specified event to the current position
$ point mousedown 0button(0-4)
-> Dispatch the mousedown event to the current position
$ point mouseup 0button(0-4)
-> Dispatch the mouseup event to the current position
$ point keydown -keyCode 65 -code KeyA -key a -sshiftKey(opt) -cctrlKey(opt) -aaltKey(opt) -mmetaKey(opt)
-> Dispatch the keydown event to the current position
$ point keypress -keyCode 65 -code KeyA -key a -sshiftKey(opt) -cctrlKey(opt) -aaltKey(opt) -mmetaKey(opt)
-> Dispatch the keydown event to the current position
$ point keyup -keyCode 65 -code -code KeyA -key a -sshiftKey(opt) -cctrlKey(opt) -aaltKey(opt) -mmetaKey(opt)
-> Dispatch the keydown event to the current position
$ point text "abc123" -speed 10(opt) -step 2(opt) -start 0(opt) -end 5(opt) speed: input speed in millis(default=30)
step : number of characters to input at a time (default=1)
start: sequence end position
end : sequence end position
-> Input text into the current position (<input>, <textarea>)
$ point selectoption set text "option1"
$ point selectoption set value "1"
-> Select a <select> option value at the current position
$ point selectoption get text
-> "option1"
$ point selectoption get value
-> "1"
$ point scroll x y
-> Scroll the current position
x: [+|-]val | left | center | right | current
y: [+|-]val | top | middle | bottom | current
$ point position -speed 10speed ms(opt) -step 10step px(opt) -alignX 0.50-1(opt) -alignY 0.50-1(opt)
$ point move x y
$ point move #id
$ point move .className 0index
$ point move CSS-Selector
$ point move tagName 0index
$ point move label labelText 0index
$ point move center Center of the screen
$ point move mouse Current mouse position
-> Move the pointer from the current position to the specified position
$ point move +100 +200
$ point move -100 -200
-> Move the pointer to the specified position (relative)
$ point drag +100 +200
-> Drag the pointer to the specified position
The options are the same as point move command.
$ point event eventType -prop1 val1 -prop2 val2
-> Send a event to the pointer position
$ point hint msg "hello!"
-> Show a message at the pointer position
$ point hint hide
-> Hide a message
$ point hint show
-> Show a message again
$ point hint clear
-> Hide and clear a message
$ point cursor data:image/png;base64,<base64-encoded-image-data> 20width(opt) 10height(opt)
-> Change the cursor image
$ point cursor default
-> Change the cursor image to default cursor (normal pointer image)
$ point cursor pointer
-> Change the cursor image to pointer cursor (an image of a hand)
$ point cursor text
-> Change the cursor image to the shape of an I-beam.
$ point cursor none
-> No cursor is renderd
$ point getprop propertyName
-> Get property value of the element at the current pointed position
$ point setprop propertyNamevalue
-> Set property value of the element at the current pointed position
$ point verify propertyNameoperandvalue
-> Verify a property value of the element at the current pointed position
e.g.,)
$ point verify value == "123"
[OK] Exp="123" == Got="123"
[NG] Exp="123" == Got="456"
$ point verify value == "123"
$ point verify value != "123"
$ point verify value < "123"
$ point verify value <= "123"
$ point verify value > "123"
$ point verify value >= "123"
$ point verify value regexp \d.*\sabc
$ point init
-> Hide pointer, clear message, point x=0, y=0.

Terminate the execution of the batch script
When a program exits, it can return to the parent program a small amount of information about the cause of termination, using the exit status.
Normally the exit status 0 indicates successful program completion.
Other value indicates unsuccessful program completion.
You can access the exit status via special variable ${?}