summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest12
1 files changed, 8 insertions, 4 deletions
diff --git a/test b/test
index 48049a4..37e62d4 100755
--- a/test
+++ b/test
@@ -9,19 +9,23 @@ DISPLAY=:99 msiexec /i lua4win.msi &
9WIN="Lua4Win Installer 1.0 Setup" 9WIN="Lua4Win Installer 1.0 Setup"
10DISPLAY=:99 xdotool sleep 3 10DISPLAY=:99 xdotool sleep 3
11win=$(DISPLAY=:99 xdotool search --sync --name "Installer") 11win=$(DISPLAY=:99 xdotool search --sync --name "Installer")
12# Click agree to terms 12# Click Next
13DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/1.png 13DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/1.png
14DISPLAY=:99 xdotool mousemove --window "$win" --sync 180 285 14DISPLAY=:99 xdotool mousemove --window "$win" --sync 346 334
15DISPLAY=:99 xdotool sleep 1 15DISPLAY=:99 xdotool sleep 1
16DISPLAY=:99 xdotool click 1 16DISPLAY=:99 xdotool click 1
17DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/2.png 17DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/2.png
18DISPLAY=:99 xdotool sleep 1 18DISPLAY=:99 xdotool sleep 1
19# Click Install 19# Click agree to liscense
20DISPLAY=:99 xdotool mousemove --window "$win" --sync 333 333 20DISPLAY=:99 xdotool mousemove --window "$win" --sync 34 286
21DISPLAY=:99 xdotool sleep 1 21DISPLAY=:99 xdotool sleep 1
22DISPLAY=:99 xdotool click 1 22DISPLAY=:99 xdotool click 1
23DISPLAY=:99 xdotool sleep 1 23DISPLAY=:99 xdotool sleep 1
24DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/3.png 24DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/3.png
25# Click next
26DISPLAY=:99 xdotool sleep 1
27DISPLAY=:99 xdotool mousemove --window "$win" --sync 350 337
28DISPLAY=:99 xdotool sleep 1
25DISPLAY=:99 xdotool click 1 29DISPLAY=:99 xdotool click 1
26DISPLAY=:99 xdotool sleep 1 30DISPLAY=:99 xdotool sleep 1
27DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/4.png 31DISPLAY=:99 xwd -name "$WIN" | magick xwd:- png:/root/4.png