click "Like" in Badoo

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
monKaster
Posts: 7
Joined: Sun Dec 26, 2021 10:36 pm

click "Like" in Badoo

Post by monKaster » Sun Dec 26, 2021 10:48 pm

Hi, I want to create an imacros to automatically click "Like" on my Badoo account, but I can't get it. If I record the click on "the heart", it changes the ID:

Code: Select all

TAG POS=82 TYPE=DIV ATTR=TXT:
TAG POS=77 TYPE=DIV ATTR=TXT:
TAG POS=76 TYPE=DIV ATTR=TXT:
TAG POS=73 TYPE=DIV ATTR=TXT:
TAG POS=87 TYPE=DIV ATTR=TXT:
TAG POS=95 TYPE=DIV ATTR=TXT:

It also changes the "dislike" ID, so I can't set a range of numbers:

Code: Select all

TAG POS=85 TYPE=DIV ATTR=TXT:
When inspecting the item in Firefox, this information appears:
class="encounters-actions__item encounters-actions__item--yes"
class="profile-action profile-action--lg profile-action--color-yes profile-action--filled js-profile-header-vote-yes js-profile-header-vote"
class="profile-action__icon"
The button is always in the same position on the screen. I don't know if you can click on specific coordinates, for example. Or on a button with certain colors?

I attach image.
26-12-2021 23-33-29.png
Thanks in advance.

FCI:
iMacros for Firefox 8.9.7
Firefox 56.0 (64-bit)
Windows 10 Home Version 21H1 (64-bit)
Last edited by monKaster on Mon Dec 27, 2021 9:15 pm, edited 1 time in total.
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: click "Like"

Post by chivracq » Mon Dec 27, 2021 10:31 am

monKaster wrote:
Sun Dec 26, 2021 10:48 pm
Hi, I want to create an imacros to automatically click "Like" on my Badoo account, but I can't get it. If I record the click on "the heart", it changes the ID:

Code: Select all

TAG POS=82 TYPE=DIV ATTR=TXT:
TAG POS=77 TYPE=DIV ATTR=TXT:
TAG POS=76 TYPE=DIV ATTR=TXT:
TAG POS=73 TYPE=DIV ATTR=TXT:
TAG POS=87 TYPE=DIV ATTR=TXT:
TAG POS=95 TYPE=DIV ATTR=TXT:

It also changes the "dislike" ID, so I can't set a range of numbers:

Code: Select all

TAG POS=85 TYPE=DIV ATTR=TXT:
When inspecting the item in Firefox, this information appears:
class="encounters-actions__item encounters-actions__item--yes"
class="profile-action profile-action--lg profile-action--color-yes profile-action--filled js-profile-header-vote-yes js-profile-header-vote"
class="profile-action__icon"
The button is always in the same position on the screen. I don't know if you can click on specific coordinates, for example. Or on a button with certain colors?

I attach image.

26-12-2021 23-33-29.png

Thanks in advance.

FCI:

Code: Select all

iMacros for Firefox 8.9.7
Firefox 56.0 (64-bit)
Windows 10 Home Version	21H1 (64-bit)
Hum, Thread Title ("click "Like"") is a bit "vague", => could you make it a bit more Descriptive and mention at least this 'Badoo' Site in it...?, + what is it that you want to like...? => Posts/Users/Photos/Songs/Videos/etc...? What kind of Content is on this Site...?

+ The Thread doesn't sound very specific to the 'iMacros for FF' Sub-Forum, I'll probably move it to 'General' Sub-Forum..., although one (possible) Solution might be indeed specific only for your v8.9.7 Version for FF...

FCI mentioned... => Perfect...! :D
... I let you "improve" the Thread Title before giving a few Suggs... (maybe...!)
=> "Like all Posts on Badoo" would be fine with me for example..., other Users searching the Forum will already know exactly from the Thread Title what the Thread is about... :idea:

And hum, I don't know this 'Badoo' Site, but "Like" sounds like it's a Social Media Site and I usually don't help for Social Media... :roll:
Sorry, but I don't understand why Users want to automatically "like" all Posts, no matter if they say "Love you" / "Fuck you" / "Here is a Link to some kinky Porn Site..." / "Or whatever else"..., ah-ah...! :shock: (+ Very soon you only get Bots "liking" and interacting with each others, making then the "Content" a bit fake, ah-ah...! :P )
If you are not able to like "all" Posts already, then you cannot put any "Intelligence" in your Script to "only" like the "Love you" ones and "ignore" all other ones... :twisted:
=> The only "legit" Scenario I would find for Web-Automation on a Social Media Site would be the "other way around": For an Admin or Moderator to automatically flag or delete all Posts with some "Fuck you" or "Spam Link" Content... :wink:

.. I'll edit your Thread Title in about 2 days if you (still) haven't "reacted" before, + maybe with a few Suggs... :|
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
monKaster
Posts: 7
Joined: Sun Dec 26, 2021 10:36 pm

Re: click "Like" in Badoo

Post by monKaster » Mon Dec 27, 2021 9:21 pm

Hello, Thank you for your reply.

I have changed the title of the thread.

I thought the right place was the firefox sub-forum because I use imacros on a firefox.

Finally, the reason. Badoo is a dating or friendship site. To start a chat there are two options: Pay or click "like" on each person's profile. If the other person "like" back, then you can chat for free.

Clicking "like" is a positive action. You indicate that you "like". It is not hate, not hostile. I mean that clicking "like" is not a negative action in any way.

However, I leave it up to you to consider helping me. Thank you
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: click "Like" in Badoo

Post by chivracq » Mon Dec 27, 2021 10:48 pm

monKaster wrote:
Mon Dec 27, 2021 9:21 pm
Hello, Thank you for your reply.

I have changed the title of the thread.

I thought the right place was the firefox sub-forum because I use imacros on a firefox.

Finally, the reason. Badoo is a dating or friendship site. To start a chat there are two options: Pay or click "like" on each person's profile. If the other person "like" back, then you can chat for free.

Clicking "like" is a positive action. You indicate that you "like". It is not hate, not hostile. I mean that clicking "like" is not a negative action in any way.

However, I leave it up to you to consider helping me. Thank you

Alright, Thanks for changing the Thread Title, and the new Title makes "more sense" indeed than my suggested one, when one knows that 'Badoo' Site or after the Explanation that you gave... :D
I "vaguely" knew the Name, but I didn't know it was a Dating Site, ah-ah...! :P Then OK, I find your "Scenario" perfectly "legit" for "a little bit of Automation" indeed, even if it now feels like you are a bit "pretty desperate" in Love/Friendship if you want to click on all the Profiles, ah-ah...! :wink:

Alright the high "POS=n" (= "POS=77" / "POS=95" / etc...) you are getting from your recorded Actions are because those 'Like' Buttons do not have any Text associated with them (=> hence the (empty) "TXT:" Attribute for the `ATTR` Param), they are Images (probably '.png' Files) located "inside" the clickable `DIV` that iMacros "sees" and records...

When dealing with high POS_Nb's, there are usually 2 Techniques:
-1 Try to identify and to use some other Attribute(s) than the 'TXT' one for which the "only Info" you and iMacros have is that it must be empty, but there are apparently many-many such Icons and mini "empty" DIV's on the Page, and probably repeated for each Profile displayed on the Page.
=> You could try selecting the 'Use Full HTML Mode' ('Conventional 'TAG' Mode') in the Recording Options. See if iMacros is able to record some more "useful" Attribute(s) than the 'TXT' one, like the 'CLASS' (="encounters-actions__item encounters-actions__item--yes" from the mini-Source Excerpts you've posted...?), or the 'ID' if it's not "Dynamic".

If the 'Full HTML Mode' doesn't really help, then you would need to record clicking on one specific 'Like' Button, which will for example record:

Code: Select all

TAG POS=85 TYPE=DIV ATTR=TXT:
You change this recorded Statement to:

Code: Select all

TAG POS=85 TYPE=DIV ATTR=TXT: EXTRACT=HTM
While in Edit Mode for the Script, you also comment out the 'URL GOTO' that iMacros will have recorded, because when you'll be running that mini-Script, you don't want iMacros to reload the Page, or the Content might change, and the POS_Nb's might change also and "POS=85" might then either not be found anymore, or correspond to some "other" 'DIV'/Icon on the Page...
Then you "manually" undo the 'Like' Action on that Profile, and you can run this mini-Script, and the 'EXTRACT_POPUP' will give you the Source Code of that 'Like' Button and the whole 'DIV'.
From this Popup, you should be able to identify some "other" Attribute(s) than the 'TXT' one (which will be empty anyway) and that will be more "unique" on the Page for each 'Like' Button...
=> If the 'CLASS' I mentioned is the correct one for those 'Like' Buttons, that would then give for example:

Code: Select all

TAG POS=1 TYPE=DIV ATTR=TXT:&&CLASS:"encounters-actions__item encounters-actions__item--yes"
And that Statement could then be looped with:

Code: Select all

TAG POS={{!lOOP}} TYPE=DIV ATTR=TXT:&&CLASS:"encounters-actions__item encounters-actions__item--yes"
If you don't want to click on the "wrong" Buttons/Icons, in case the 'CLASS' is "wrong", or the same 'CLASS' is also used for "other" Buttons/Icons, you could first loop 3 times for example the following mini-Script:

Code: Select all

SET !TIMEOUT_STEP 1
TAG POS={{!lOOP}} TYPE=DIV ATTR=TXT:&&CLASS:"encounters-actions__item encounters-actions__item--yes" EXTRACT=HTM
PROMPT LOOP:<SP>_{{!LOOP}}_<BR><BR>EXTRACT:<BR>_{{!EXTRACT}}_
... and "verify" that "LOOP=1" corresponds to the 'Like' Button for 'Profile_1', "LOOP=2" for 'Profile_2', etc...

-2 The 2nd Technique to use for high "POS=n" is otherwise to use 'Relative Positioning' if you can identify (and tag) some HTML Element that will be (more) unique for each Profile and that could be used as 'Anchor' to be looped, while the 'R-POS' for the Click on the 'Like' Button will remain constant, and "hopefully" "POS=R1", but even if "POS=R1" is not correct, maybe it is "POS=R3", but the "POS=R3" will remain constant for all Profiles...

>>>
monKaster wrote:
Sun Dec 26, 2021 10:48 pm
The button is always in the same position on the screen. I don't know if you can click on specific coordinates, for example. Or on a button with certain colors?
"button with certain colors":
=> In some Cases yep, but not in this one, a Colour Attribute can be used on Text, while the 'TXT' Attribute on this Page for this Button is empty, and the Button/Icon itself is an Image...
But the URL/'HREF' Attribute of that Image could be used indeed, as I reckon it will be same URL for all 'Like' Buttons, but hum..., probably a bit more "complicated" to implement than the other Techniques I mentioned...

"The button is always in the same position on the screen. I don't know if you can click on specific coordinates":
=> Ah...!, that could be an "Option" indeed, and maybe even a "good Idea" actually...:
There are 2 Ways/Modes to click with Coordinates:
-1 Using the 'X/Y CLICK' Mode from the Recording Options. And this is the "Solution"/Implementation I mentioned that would be specific to your v8.9.7 Version for FF, as this Mode is not supported anymore in all Versions released after v8.9.7.
But hum, I've always tried to "avoid" this Mode that I've never found very "reliable", + your Browser Window will always need to have the same Size...

-2 The 2nd Way is to use the 'EVENT' Mode to record a "slow" Click on the 'Like' Button...
=> Then instead of recording one 'CLICK' Statement, iMacros will then record 3 Statements, with a `MOUSEDOWN` + `MOUSEMOVE` (of just a few Pixels) + `MOUSEUP`. And the last 2 recorded Statements do use Coordinates indeed... That could work... But I'm not sure if the `SELECTOR` Param for the `MOUSEDOWN` will remain "constant", and you cannot "easily" loop a Script with the 'EVENT' Mode... (even if I have a Workaround for that...).

... But the "standard" 'EVENT' Mode could also be an Option, with or without the "Favor element ids in selectors" Setting, but you will then encounter the same "Difficulties" I mentioned about looping a Script in 'EVENT' Mode...

OK, "good Luck", I think I gave you all Info on how to implement the Func that you want..., and "good Luck" also with finding Love or Friendship on that Site, ah-ah...! :wink:

... And post your Script once you'll have managed to get it to work, maybe some other Users will find it useful also..., and/or follow up if you get "stuck" somewhere... :idea:

>>>

And I moved the Thread to the 'General' Sub-Forum... :!:
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
monKaster
Posts: 7
Joined: Sun Dec 26, 2021 10:36 pm

Re: click "Like" in Badoo

Post by monKaster » Tue Dec 28, 2021 7:30 am

Thanks for the answer. it may take me 2 days to put into practice, but I want to thank you in advance. I will be back with an update.
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: click "Like" in Badoo

Post by chivracq » Tue Dec 28, 2021 12:40 pm

monKaster wrote:
Tue Dec 28, 2021 7:30 am
Thanks for the answer. it may take me 2 days to put into practice, but I want to thank you in advance. I will be back with an update.

OK, yep-yep, I understand... Lots of "Reading", ah-ah...! :wink:

I had a Typo in one of the mini-Scripts I had included... Corrected... :oops:

If you want to go "quick and dirty", you can first try with the 2 last Techniques with Coordinates like you had suggested yourself, those 2 should be "quick" to implement and to find out if they/any work(s), but you'll probably have to make sure you always use your Browser with the same Size (=> Maximized, I would think...) or the Coordinates might change...
Although the 'EVENT' Mode with a `MOUSEMOVE` is "maybe" less "sensitive" to the Screen Size/Resolution... I use it in several of my Scripts (both launched from the Win10 Task Scheduler or manually) with 2 External Monitors (all 3 Monitors with different Screen Resolutions) and when launched from the Task Scheduler, i don't really "control" on which Monitor the Script is launched, + the Browser Size, + the iMacros Side-Panel is minimized, while it is Open in Manual Mode (and I sometimes also change a bit the Width of the iMacros Side Panel), but it still works in all Cases... But the Web-Pages are quite small, so maybe I'm just "lucky" that they always fit in the Browser, without any Scrolling required to be displayed... :P

And the first 2 Techniques might take a bit longer to "understand" and to implement, but they will probably be "more reliable"... (And the 'R-POS' one is "usually" my preferred one... (Less prone to get "broken" if the Content/Display/HTML Structure of the Site/Page changes, or easier to adapt if that happens...)
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
monKaster
Posts: 7
Joined: Sun Dec 26, 2021 10:36 pm

Re: click "Like" in Badoo

Post by monKaster » Tue Dec 28, 2021 12:43 pm

Hello, thank you
chivracq wrote:
Mon Dec 27, 2021 10:48 pm

Code: Select all

TAG POS=85 TYPE=DIV ATTR=TXT: EXTRACT=HTM
The first method doesn't work Because when you click on "like" to save the "POS=#" , it counts as "like", moving to the next profile and automatically changing the ID, even if it stays on the same URL.

Before trying the other methods, I have found something that may work, but I don't know how to apply it.

When I put the mouse over the button, a message appears:
111111.png
111111.png (22.9 KiB) Viewed 4905 times
If I search for this text in the code, it appears like this:
111111.png
I have tried this, removing the ID POS:

Code: Select all

TAG TYPE=DIV ATTR=TXT:Me<SP>gusta
This is the only immutable reference I have found associated with this button, can it be used?

Thanks
monKaster
Posts: 7
Joined: Sun Dec 26, 2021 10:36 pm

Re: click "Like" in Badoo

Post by monKaster » Tue Dec 28, 2021 12:46 pm

chivracq wrote:
Tue Dec 28, 2021 12:40 pm
monKaster wrote:
Tue Dec 28, 2021 7:30 am
Thanks for the answer. it may take me 2 days to put into practice, but I want to thank you in advance. I will be back with an update.

OK, yep-yep, I understand... Lots of "Reading", ah-ah...! :wink:

I had a Typo in one of the mini-Scripts I had included... Corrected... :oops:

If you want to go "quick and dirty", you can first try with the 2 last Techniques with Coordinates like you had suggested yourself, those 2 should be "quick" to implement and to find out if they/any work(s), but you'll probably have to make sure you always use your Browser with the same Size (=> Maximized, I would think...) or the Coordinates might change...
Although the 'EVENT' Mode with a `MOUSEMOVE` is "maybe" less "sensitive" to the Screen Size/Resolution... I use it in several of my Scripts (both launched from the Win10 Task Scheduler or manually) with 2 External Monitors (all 3 Monitors with different Screen Resolutions) and when launched from the Task Scheduler, i don't really "control" on which Monitor the Script is launched, + the Browser Size, + the iMacros Side-Panel is minimized, while it is Open in Manual Mode (and I sometimes also change a bit the Width of the iMacros Side Panel), but it still works in all Cases... But the Web-Pages are quite small, so maybe I'm just "lucky" that they always fit in the Browser, without any Scrolling required to be displayed... :P

And the first 2 Techniques might take a bit longer to "understand" and to implement, but they will probably be "more reliable"... (And the 'R-POS' one is "usually" my preferred one... (Less prone to get "broken" if the Content/Display/HTML Structure of the Site/Page changes, or easier to adapt if that happens...)
Thank you, I saw that you wrote this message while I was writing mine.

To test the coordinates, I am looking for how to get the coordinates from a website. I have found programs to know the coordinates on the PC screen, but I have not yet found to find them on a website.
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: click "Like" in Badoo

Post by chivracq » Tue Dec 28, 2021 1:01 pm

monKaster wrote:
Tue Dec 28, 2021 12:46 pm
Thank you, I saw that you wrote this message while I was writing mine.

To test the coordinates, I am looking for how to get the coordinates from a website. I have found programs to know the coordinates on the PC screen, but I have not yet found to find them on a website.

You don't need any "external" Tool(s) to get the Coordinates, let iMacros record them itself in Record Mode... (both for 'X/Y' Mode and "slow" 'EVENT' Mode...).
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: click "Like" in Badoo

Post by chivracq » Tue Dec 28, 2021 1:26 pm

monKaster wrote:
Tue Dec 28, 2021 12:43 pm
Hello, thank you

Code: Select all

TAG POS=85 TYPE=DIV ATTR=TXT: EXTRACT=HTM
The first method doesn't work Because when you click on "like" to save the "POS=#" , it counts as "like", moving to the next profile and automatically changing the ID, even if it stays on the same URL.

Yep, that why I mentioned you had to first "manually undo the 'Like'" before running that mini-Script... But getting the Source Code from the Element Inspector has the same "Goal"...

>>>
monKaster wrote:
Tue Dec 28, 2021 12:43 pm
Before trying the other methods, I have found something that may work, but I don't know how to apply it.

When I put the mouse over the button, a message appears:

111111.png

If I search for this text in the code, it appears like this:

111111.png

I have tried this, removing the ID POS:

Code: Select all

TAG TYPE=DIV ATTR=TXT:Me<SP>gusta
This is the only immutable reference I have found associated with this button, can it be used?

Thanks

Nope, you can't remove the `POS` Param, it is needed and required for a `TAG` Command to work, ... and iMacros will probably throw some Runtime/Syntax Error about it...

Then well, if that "Me gusta" 'DIV' is clickable, then the following might work:

Code: Select all

TAG POS=1 TYPE=DIV ATTR=TXT:Me<SP>gusta
... at least for the 1st Profile..., then you'll have to check if the "POS=n" remains at "n=1" (then "POS=1" will keep working for the next Profiles), or if 'n' will need to get incremented to "n=2" => "n=3" etc..., then you'd have to use:

Code: Select all

TAG POS={{!LOOP}} TYPE=DIV ATTR=TXT:Me<SP>gusta

And if the "Me gusta" 'DIV' is not clickable by itself, (and I think that will be the Case from what I can see from your Screenshot of the Source, as this 'DIV' is at the same Level like the previous 'DIV' in the CSS Structure which seems to be for the 'Like'), then that's where you could use 'R-POS' on the clickable 'DIV', with for example stg like:

Code: Select all

TAG POS={{!LOOP}} TYPE=DIV ATTR=TXT:Me<SP>gusta
TAG POS=R-1 TYPE=DIV ATTR=CLASS:*vote-yes*&&ROLE:button
But the 'TXT' Content/Attribute for that 'DIV' is not empty, it contains some "..." Symbol/Char, but the 'DIV' for the 'Like' is probably inside it, so I'm not sure it's the "correct" 'DIV' to use...

>>>

Oh yeah..., and you keep using the Term "POS ID", but this not correct..., you mean "POS Number", or like I use regularly "POS_Nb".
And that "POS_Nb" is actually a "Counter" defined at the CSS Level for that Page to identify the n-th Element with the same (HTML) Properties.

... While the "ID" of an Element is an "HTML Attribute", => like its 'CLASS' / 'NAME' / 'ROLE' / etc... The Text Content is not "really" an Attribute, but iMacros treats it as such in the Syntax for the `TAG` Command, at least when used to locate/tag an Element..., and uses also a different Param (=> 'CONTENT') to write to it for 'INPUT' Elements...
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
monKaster
Posts: 7
Joined: Sun Dec 26, 2021 10:36 pm

Re: click "Like" in Badoo

Post by monKaster » Thu Dec 30, 2021 5:28 pm

chivracq wrote:
Mon Dec 27, 2021 10:48 pm
monKaster wrote:
Mon Dec 27, 2021 9:21 pm

There are 2 Ways/Modes to click with Coordinates:
-1 Using the 'X/Y CLICK' Mode from the Recording Options. And this is the "Solution"/Implementation I mentioned that would be specific to your v8.9.7 Version for FF, as this Mode is not supported anymore in all Versions released after v8.9.7.
But hum, I've always tried to "avoid" this Mode that I've never found very "reliable", + your Browser Window will always need to have the same Size...

-2 The 2nd Way is to use the 'EVENT' Mode to record a "slow" Click on the 'Like' Button...
=> Then instead of recording one 'CLICK' Statement, iMacros will then record 3 Statements, with a `MOUSEDOWN` + `MOUSEMOVE` (of just a few Pixels) + `MOUSEUP`. And the last 2 recorded Statements do use Coordinates indeed... That could work... But I'm not sure if the `SELECTOR` Param for the `MOUSEDOWN` will remain "constant", and you cannot "easily" loop a Script with the 'EVENT' Mode... (even if I have a Workaround for that...).

... But the "standard" 'EVENT' Mode could also be an Option, with or without the "Favor element ids in selectors" Setting, but you will then encounter the same "Difficulties" I mentioned about looping a Script in 'EVENT' Mode...

OK, "good Luck", I think I gave you all Info on how to implement the Func that you want..., and "good Luck" also with finding Love or Friendship on that Site, ah-ah...! :wink:

... And post your Script once you'll have managed to get it to work, maybe some other Users will find it useful also..., and/or follow up if you get "stuck" somewhere... :idea:

>>>

And I moved the Thread to the 'General' Sub-Forum... :!:
Hi, I have tried the coordinates, but it doesn't seem to work, I have attached a video. The video is in hidden mode, it can only be seen by those who have this link, and all the personal data is hidden.


Thanks
Last edited by monKaster on Tue Jan 11, 2022 4:56 pm, edited 1 time in total.
monKaster
Posts: 7
Joined: Sun Dec 26, 2021 10:36 pm

Re: click "Like" in Badoo

Post by monKaster » Tue Jan 11, 2022 4:56 pm

Hi, I have been trying to get this to work for two weeks now. I don't like to insist and what I don't understand I try to investigate following your indications received. After several days, I come to the conclusion that I cannot continue without asking for help again.

So far, this has come the closest to working:
chivracq wrote:
Tue Dec 28, 2021 1:26 pm
... at least for the 1st Profile..., then you'll have to check if the "POS=n" remains at "n=1" (then "POS=1" will keep working for the next Profiles), or if 'n' will need to get incremented to "n=2" => "n=3" etc..., then you'd have to use:

Code: Select all

TAG POS={{!LOOP}} TYPE=DIV ATTR=TXT:Me<SP>gusta
It seems to identify the button, but it does not manage to click, it remains as in the attached image:
11-01-2022 17-55-24.png

This other thing has not worked.


And if the "Me gusta" 'DIV' is not clickable by itself, (and I think that will be the Case from what I can see from your Screenshot of the Source, as this 'DIV' is at the same Level like the previous 'DIV' in the CSS Structure which seems to be for the 'Like'), then that's where you could use 'R-POS' on the clickable 'DIV', with for example stg like:

Code: Select all

TAG POS={{!LOOP}} TYPE=DIV ATTR=TXT:Me<SP>gusta
TAG POS=R-1 TYPE=DIV ATTR=CLASS:*vote-yes*&&ROLE:button
I don't know how to continue. Thanks
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: click "Like" in Badoo

Post by chivracq » Tue Jan 11, 2022 5:51 pm

Yeah-yeah, it's fine to post again, you didn't need to "wait for so long" actually..., I had seen your Video just before the end of the year, but tja..., there is not much I can see (and say) from a Video (or a Screenshot), I can't see the HTML Structure from a Video...

Then, OK..., the "Me gusta" 'DIV' gets found, but it's apparently not clickable, it looks more like it is a "Containing" 'DIV' for the "Heart" 'Button'...
If you don't get "Element not found" with "POS=R-1" for the Button, iMacros must find some 'Button' at "POS=R-1", then apparently "R-1" is not correct, you need to try with "R-2", or "R1" / "R2" / etc..., and if the 'Button' is "inside" the "Me gusta" 'DIV', then you will need to use "Double" 'Relative Positioning'...

That's all I can say and explain without being able to have a look myself, maybe if you posted "a bit" of the HTML Source, then I could be more precise, but I think from 'Firebug' or 'FF Inspector', I would need (at least) the "Inner" or "Outer" HTML of the whole Popup where all those Buttons are located... :idea:
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: click "Like" in Badoo

Post by chivracq » Sun Jan 16, 2022 10:09 am

Hum..., any Chance you could react/follow up a bit quicker than 10 days or 2 weeks later each time...? :idea:

If you take "too long" to react each time, then I've already kind of "forgotten" about the Thread when you post again, ... and then need to "dig back into it" completely, which is even "more true" for Threads I didn't do any Testing by myself on the Site itself but have to "remember" all Info from the Forum and what Info the User provided... :idea:
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
Post Reply