Automatic scroll on Youtube until a certain image is found

Hi guys,

I've been using KM for a while and so far I reached to automate a certain number of things. However, I'm currently struggling on the following automation on Youtube searches :

  • KM scrolls the page (and load the next ones by scrolling to the bottom of the page) and once it has found a specific thumbnail, it clicks on it.

So far, what I've reached to do is having KM to enter the search terms in the search bar, enter the terms, set a if condition : if the thumbnail is present = click on it // if not, scroll

What I first think about is interlocking numerous if condition to have KM keep scrolling until it finds the thumbnail. However, I think that such a way of doing it is pretty "crafty".

What would be the simplest way to do it ?

Thanks for your help :slight_smile:

Did you try this code.


1 Like

Didn't know this one ! It works well ! thanks for your help :slight_smile:

@Arturito,

Found Image Actions/Conditions will work MUCH faster if you can restrict the search area:

image

Change to "in the front window"

Of course, that means that you have to select the target window before triggering the macro.

Noted, thanks ! I'm going to try that.