How can I make the Instagram like button dynamic?

Hi,
How can I make the Instagram like button dynamic? I don’t want to do it with Find Image activity.Can you help me?

Did you try using Dynamic selectors?

You can read about that in the forum

Regards

1 Like

Hi,
I’m trying to click the next like button in the loop. The topics I read on the forum were not enough.

Can i see which selector your button is generating?

After and before you like

1 Like

The selector is below. I have also attached the sample working file.

<webctrl aria-role='img' tag='svg' css-selector='body&gt;div&gt;section&gt;main&gt;section&gt;div&gt;div&gt;div&gt;div&gt;article&gt;div&gt;div&gt;div&gt;div&gt;section&gt;span&gt;button&gt;div&gt;span&gt;svg' idx='1' />

Main.xaml (15.4 KB)

Can you try retrieving the css attribute with the get attribute activity and see if it’s changes?

1 Like

I didn’t understand what to do.

Use the get attribute activity, and select the like button, retrieve the prioritie called css, it should change if it’s liked or isn’t, that’s what I want to try

Hi @ridvanucok ,

I was able to find a workaround, but you have to Scroll Down after each like since the robot can only detect the next Like Button if it appears on screen.

EDIT Its not required, I’ve attached a workflow for your reference towards the end of the solution

<html app='chrome.exe' title='Instagram' />
<webctrl css-selector='span.fr66n' idx='{{int_counter}}' />

Could you give this a try?

InstagramLikeButtonClick.xaml (12.4 KB)

Kind Regards,
Ashwin A.K