Use quicktype for typing website address because sometimes it's not entered fully before pressing Return

This commit is contained in:
Kuba Orlik 2022-07-09 20:43:43 +02:00
parent 80f4bf94dd
commit 37200bb89e

View File

@ -59,6 +59,11 @@ grab(){
#echo "not grabbing" #echo "not grabbing"
} }
quicktype(){
echo "$1" | xclip -sel clip
keycombo Control_L v
}
grab_screen_to_public(){ grab_screen_to_public(){
id=$1 id=$1
filepath="/opt/static/$id/preview.png" filepath="/opt/static/$id/preview.png"
@ -155,8 +160,9 @@ load_website(){
WEBSITE_URL=$1 WEBSITE_URL=$1
keycombo Control_L l keycombo Control_L l
grab ctrl+l grab ctrl+l
xdotool type "$WEBSITE_URL" quicktype "$WEBSITE_URL"
grab type url grab type url
xdotool key Delete
xdotool key Return xdotool key Return
grab enter grab enter
sleep 1 sleep 1
@ -209,7 +215,7 @@ network_inspector_next_entry(){
xdotool key Tab xdotool key Tab
sleep 0.05 sleep 0.05
xdotool key Down xdotool key Down
sleep 0.1 sleep 0.5 # some time is needed here for request headers to render into view
} }
# last_message="_____" # last_message="_____"