summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-10-15 12:37:38 -0500
committerAlexander M Pickering <alex@cogarr.net>2024-10-15 12:37:38 -0500
commitfb086f3c3c31fde0d37cb1174596db8e363b526b (patch)
treef8dcd87d5311fa1a967352ffb3dac0be54513cb3
parent3d4da26ff451ef256bb695fbe02b89f866615451 (diff)
downloadlua4win-dist-lua-fb086f3c3c31fde0d37cb1174596db8e363b526b.tar.gz
lua4win-dist-lua-fb086f3c3c31fde0d37cb1174596db8e363b526b.tar.bz2
lua4win-dist-lua-fb086f3c3c31fde0d37cb1174596db8e363b526b.zip
We have to re-find the window every time, it's a different window.
-rwxr-xr-xtest6
1 files changed, 3 insertions, 3 deletions
diff --git a/test b/test
index 37e62d4..08a67d0 100755
--- a/test
+++ b/test
@@ -11,20 +11,20 @@ DISPLAY=:99 xdotool sleep 3
11win=$(DISPLAY=:99 xdotool search --sync --name "Installer") 11win=$(DISPLAY=:99 xdotool search --sync --name "Installer")
12# Click Next 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 346 334 14DISPLAY=:99 xdotool mousemove --window "$(DISPLAY=:99 xdotool search --sync --name "Installer")" --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 agree to liscense 19# Click agree to liscense
20DISPLAY=:99 xdotool mousemove --window "$win" --sync 34 286 20DISPLAY=:99 xdotool mousemove --window "$(DISPLAY=:99 xdotool search --sync --name "Installer")" --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 25# Click next
26DISPLAY=:99 xdotool sleep 1 26DISPLAY=:99 xdotool sleep 1
27DISPLAY=:99 xdotool mousemove --window "$win" --sync 350 337 27DISPLAY=:99 xdotool mousemove --window "$(DISPLAY=:99 xdotool search --sync --name "Installer")" --sync 350 337
28DISPLAY=:99 xdotool sleep 1 28DISPLAY=:99 xdotool sleep 1
29DISPLAY=:99 xdotool click 1 29DISPLAY=:99 xdotool click 1
30DISPLAY=:99 xdotool sleep 1 30DISPLAY=:99 xdotool sleep 1