Dynamic Click in movie Search RPA challenge activity

Hey guys,
I need some help. Could you please help me to sort it out?
I’m doing the movie search RPA challenge activity.

After the sentimental analysis of the first part of the first movie review, It should click on either negative or positive button underneath it depending on the review result.

After it should proceed the next part of review of the same movie. And according to the sentimental analysis result, It should click on either negative or positive button underneath that part.

But in my case, for all parts of movie review, the sentimental analysis is working. But the click activity is clicking on the same negative or positive button in all the cases. It’s not automatically scrolling down and not clicking on the appropriate negative or positive button.

Any help would be appreciated.
Thanks in advance.

@Krishna_C

Before click keep set focus activity, also you need to check on the selector, can you share the selectors?

Thanks

@Srini84

Thank you so much for responding.
I’m attaching the click activity and it’s corresponding selector screenshot. Please have a look.

Regards,
Krishna

@Krishna_C Can you show the Selectors by Opening it in UiExplorer, we can check if there is any attribute which contains the word positive or anything that resembles it. Also What is the JobJ(“lable”) value?

@supermanPunch
Sure. BTW, Thanks for the reply.

jobJ(“label”) will out the result of sentimental analysis. It’ll will be ‘pos’ or ‘neg’.

I’m attaching the screenshot here.

Regards,
Krishna.

@Krishna_C Do not include the idx and parentID attribute. You can use the aaname attribute and the tag attribute only. Check if it highlights the positive Button after changing. Do the same for the Negative button.

@supermanPunch

I tried it. It’s highlighting the positive and negative button correctly. But the same issue is there.
It’s clicking on the same positive and negative button for all part of the movie review.

@Krishna_C The result frm the jobJ(“label”) value might be corresponding to it. Use a message box and check if the value and the click corresponds to be the same

@supermanPunch

This is the value i’m getting from jobJ(“label”).

For any further reference i’m attaching my workflow over here.Data_Scraping (2).zip (25.9 KB)

Thanks.

@Krishna_C I don’t think the Endpoint is accessible for me :sweat_smile: , But the method what you have approached is right and I think it Should work. But the Click Activity within the if Condition was not present in the Workflow. So couldn’t confirm the selectors but if the Selectors are modiifed and if you get output from the endpoint, the problem seems to be something else.

@supermanPunch

Aiwa!! Where my if condition has gone? :grin:

Anyways help me if you’re getting any solution for this.
Thanks. :blush:

@Krishna_C You want to perform the sentiment analysis for only the first movie that comes When you click on “Get Popular movies” is that right?

@Krishna_C I guess I was able to complete this Challenge. it was working in mine. Check if the Workflow works for you as well.
DataScraping.zip (19.2 KB)

@supermanPunch
Not exactly. i need to do for all the 3 !!

Since i’m a beginner in UiPath, i’m doing it one by one. :smiley:

@supermanPunch
I got ya workflow. But many thing are missing when i tried to run it. I didn’t understand wot exactly you’ve done in that.

Could you please tell me wot ya did for the dynamic click? Any changes you did in selector?

Hi @Krishna_C

This is what you can do. Look at the below SS.

image

This is what the selector you have to make it dynamic :-
image

Github Link for the same :-

Hope this may help to solve your query
Definetly mark as solution & like it. :innocent:

Happy Automation :raised_hands:

Best Regards
Er Pratik Wavhal :robot::man_technologist:t4: :computer:

1 Like

@Pratik_Wavhal
hey thanks for your help.
could you please tell me what is this ‘reviewId’

Hi @Krishna_C

In the selector, reviewId i have used for the paragraph which is currently going on. For eg making the sentiment on which para.

So initially i have done Data Scrapping for the same so by the following SS you will get it know that i am retrieving the index from the datatable for that particular paragraph which was getting analyze.

image

Hope this may help to solve your query
Definetly mark as solution & like it. :innocent:

Happy Automation :raised_hands:

Best Regards
Er Pratik Wavhal :robot::man_technologist:t4: :computer:

@Pratik_Wavhal
Okay.
Wot is the data type of reviewId? Is it int? I’m getting error over there

Hi @Krishna_C

Yes. Its Integer.
image

You may have a look to the same working project on the below github like :-

Hope this may help to solve your query
Definetly mark as solution & like it. :innocent:

Happy Automation :raised_hands:

Best Regards
Er Pratik Wavhal :robot::man_technologist:t4: :computer: