Use quicktype for typing website address because sometimes it's not entered fully before pressing Return
This commit is contained in:
parent
80f4bf94dd
commit
37200bb89e
|
@ -59,6 +59,11 @@ grab(){
|
|||
#echo "not grabbing"
|
||||
}
|
||||
|
||||
quicktype(){
|
||||
echo "$1" | xclip -sel clip
|
||||
keycombo Control_L v
|
||||
}
|
||||
|
||||
grab_screen_to_public(){
|
||||
id=$1
|
||||
filepath="/opt/static/$id/preview.png"
|
||||
|
@ -155,8 +160,9 @@ load_website(){
|
|||
WEBSITE_URL=$1
|
||||
keycombo Control_L l
|
||||
grab ctrl+l
|
||||
xdotool type "$WEBSITE_URL"
|
||||
quicktype "$WEBSITE_URL"
|
||||
grab type url
|
||||
xdotool key Delete
|
||||
xdotool key Return
|
||||
grab enter
|
||||
sleep 1
|
||||
|
@ -209,7 +215,7 @@ network_inspector_next_entry(){
|
|||
xdotool key Tab
|
||||
sleep 0.05
|
||||
xdotool key Down
|
||||
sleep 0.1
|
||||
sleep 0.5 # some time is needed here for request headers to render into view
|
||||
}
|
||||
|
||||
# last_message="_____"
|
||||
|
|
Loading…
Reference in New Issue
Block a user