How to scroll down on applescript?

元气小坏坏 提交于 2019-12-13 02:37:08

问题


Im trying to make a follow/unfollow bot for Depop. Here is what i got so far.

tell application "Safari"
    activate
end tell

set Username to display dialog "What is your Depop username?" default 
answer ""
set Username to text returned of the result

tell application "Safari"
    activate
    open location "https://www.depop.com/" & Username
    delay 5
end tell
tell application "System Events"
    tell process "Safari"
        click at {350, 305} -- {from left, from top}
        click at {350, 305} -- {from left, from top}
        click at {1038, 407} -- {from left, from top}
        click at {1038, 482} -- {from left, from top}
        delay 1
    end tell

end tell

I'm trying to make it so it clicks follow and then in a different script it presses unfollow. I'm struggling with how to make it scroll down to click follow/unfollow. Also, if anyone has any ideas on how to make it more efficient then please let me know.

来源:https://stackoverflow.com/questions/51688867/how-to-scroll-down-on-applescript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!