Hello guys, I’m new to UIpath so I’m lost now. I’m trying to automate on how to share to facebook groups. I have 50 groups and Facebook doesn’t have the feature to share a post to all your groups in 1 click, so you need to do it manually one by one.
I want to share a facebook post to the first 6 groups(WITH YELLOW BOX) on that list and scroll down after to show another 6 groups until I’m done sharing with my 50 groups.
But this vertical scroll bar is always hidden(WITH RED BOX). I tried sending hotkey like pgdn or the down arrow key but it only works with mouse.
What I’ve tried:
1.To solve the vertical scroll bar, I used hover activity to a name on that list and put an imgeexist activity to check if the scroll bar showed up after the hover activity. It worked. But I can’t control the scroll down to show another 6 groups.
Like u said the hotkey works when u hover over a group, so before sending hotkey make a generic selector of “Hover” activity that can hover to any group despite the name of group which we can omit in this case after this try sending hotkey
This is great! I didn’t thought about it. I’m too occupied by that vertical scroll bar
Anyway, I’m thinking about putting this is in a loop so every time the tab selected the name of the group it will automatically click it to open the “create post dialog box” Because I have 50 groups to share with.
Anymore suggestions? but this is already a good trick. Thanks a lot!
I couldn’t think more better then this trick
and yeah it will work good in loop another think is, try to put some seconds-delay bcz after 10 to 15 groups (already loaded in groups div) and when bot will send hotkey of “Pgdn” it will refresh and load other groups and we don’t want to miss any “Tab” hotkey
To add on to @SHAF_MAIRAJ ideas, you may want to experiment with find children activity with scope for FIND_CHILDREN or FIND_DESCENDANTS. It has start from a parent level that shows all the groups. The output of find children activity is List of UiElement where you could count the number of groups. Thus making it less reliant on screen size or N number of groups displayed on UI viewport.
This process I once tried, but “Find Children” throws error as it couldn’t able to find the element which is yet to be load, only showing the count of available/shown elements
Can u please provide a demo or something ?
The add-on idea is to surround the find children activity in a try-catch block activity. Find children just need to count the number of elements.
After each page down or mouse scroll
In try section, if number of elements is lesser than the default of 6 groups within the viewport then we know it has reach the end.
In the catch section, if number of elements is zero, assuming the UI shows empty then we also knows it has reach the end.
I got it working now. I just finished sharing to 97 group and it took me an hour
the idea by @SHAF_MAIRAJ was really the good starting point.
I put the tab key in a loop just like what my idea above, to act as a selector. But the problem was it’s taking a second to hit the tab key. So If I need to tab 5 times it’ll took 5 sec which is a problem if you have a lot of groups.
And then I found these
That led me to this
Which made the pressing of the tab a lot way faster.
Although there is a lot of polishing needed to make my flow more efficient and time saver. Thanks a lot, guys!