diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2024-10-02 18:04:27 -0500 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2024-10-02 18:04:27 -0500 |
| commit | 93a7b74c4e6c1b18f0f668926381fbf80672907d (patch) | |
| tree | 69c48fbfffe93ecbe8acd4a57c24ba3b29c7100f | |
| parent | 6a3257219e5761078f320785f0035276cc91e716 (diff) | |
| download | lua4win-dist-lua-93a7b74c4e6c1b18f0f668926381fbf80672907d.tar.gz lua4win-dist-lua-93a7b74c4e6c1b18f0f668926381fbf80672907d.tar.bz2 lua4win-dist-lua-93a7b74c4e6c1b18f0f668926381fbf80672907d.zip | |
Use relative posisionts for test
| -rwxr-xr-x | test | 24 |
1 files changed, 12 insertions, 12 deletions
| @@ -6,28 +6,28 @@ sleep 5 | |||
| 6 | DISPLAY=:99 WINEDLLOVERRIDES="mscoree,mshtml=" wineboot -i | 6 | DISPLAY=:99 WINEDLLOVERRIDES="mscoree,mshtml=" wineboot -i |
| 7 | # For some reason we have to set this here, having set .. ^ is not enough | 7 | # For some reason we have to set this here, having set .. ^ is not enough |
| 8 | DISPLAY=:99 msiexec /i lua4win.msi & | 8 | DISPLAY=:99 msiexec /i lua4win.msi & |
| 9 | sleep 5 | 9 | win=$(DISPLAY=:99 xdotool search --sync --name "Installer") |
| 10 | WIN="Lua4Win Installer 1.0 Setup" | ||
| 10 | # Click agree to terms | 11 | # Click agree to terms |
| 11 | DISPLAY=:99 xwd -root | magick xwd:- png:/root/1.png | 12 | DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/1.png |
| 12 | DISPLAY=:99 xdotool mousemove --sync 573 618 | 13 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 180 285 |
| 13 | sleep 1 | 14 | DISPLAY=:99 xdotool sleep 0.1 |
| 14 | DISPLAY=:99 xwd -root | magick xwd:- png:/root/2.png | ||
| 15 | DISPLAY=:99 xdotool click 1 | 15 | DISPLAY=:99 xdotool click 1 |
| 16 | sleep 1 | 16 | DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/2.png |
| 17 | # Click Install | 17 | # Click Install |
| 18 | DISPLAY=:99 xwd -root | magick xwd:- png:/root/3.png | 18 | DISPLAY=:99 xdotool mousemove --window "$win" --sync 333 333 |
| 19 | DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/3.png | ||
| 19 | DISPLAY=:99 xdotool mousemove --sync 725 666 | 20 | DISPLAY=:99 xdotool mousemove --sync 725 666 |
| 20 | sleep 1 | 21 | sleep 1 |
| 21 | DISPLAY=:99 xwd -root | magick xwd:- png:/root/4.png | 22 | DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/4.png |
| 22 | DISPLAY=:99 xdotool click 1 | 23 | DISPLAY=:99 xdotool click 1 |
| 23 | sleep 1 | 24 | sleep 1 |
| 24 | 25 | ||
| 25 | DISPLAY=:99 xwd -root | magick xwd:- png:/root/5.png | 26 | DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/5.png |
| 26 | DISPLAY=:99 xdotool mousemove --sync 743 666 | 27 | DISPLAY=:99 xdotool mousemove --sync 743 666 |
| 27 | sleep 1 | 28 | sleep 1 |
| 28 | DISPLAY=:99 xwd -root | magick xwd:- png:/root/6.png | 29 | DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/6.png |
| 29 | DISPLAY=:99 xdotool click 1 | 30 | DISPLAY=:99 xdotool click 1 |
| 30 | sleep 1 | 31 | sleep 1 |
| 31 | DISPLAY=:99 xwd -root | magick xwd:- png:/root/7.png | 32 | DISPLAY=:99 xwd -name $WIN | magick xwd:- png:/root/7.png |
| 32 | tar -czf images.tar.gz *.png | 33 | tar -czf images.tar.gz *.png |
| 33 | exit -1 | ||
