Apple script to move the mouse pointer on a specified word and click on it in Safari
Dear all,
I come to this site after an exhaustive and thorough googling and searching for a solution to my problem. What I want to achieve is to completely reveal absolutely all the comments under a YouTube video. Since there is no simple way to do this, currently I have to do this manually following these steps:
- scrolling to the bottom and clicking the "Show more" button until it disappears
- After doing that, I still don't get to see all the comments, next I have to CMD+F "view all " in order to find and reveal the comments hidden under all the "View all # replies" (e.g. "View all 5 replies" etc.)
- the final step is to CMD+F "Read more" in order to display the content of some longer comments that are normally hidden
So, basically, what I need an Apple Script that would do it for me.
- First it would find the last string "Show more" and would click on it
- Then it would try to find and click on it again until it's there no more
- Then it would find all the "view all " and click on them
- and finally it would find and click on all the "Read more"
Please, I would really appreciate if anyone could help me with this, you would save me so much time.
Thank you very much in advance.
PS: if you think I'm asking too much, could you just please tell me how to find a string and just click on it? Nothing else.
MacBook Pro, OS X El Capitan (10.11.1), Apple Script