Sending Invites on Linkedin

If you need a faster way to send out individual connection requests, this work well. Trigger it while you on their public profile and it navigates to the invite screen (using two different ways), click add a message and then inserts your message.here. At one point I had it also click the "send" button but found that every once in a while, it fails to grab their first name.


{if: len(catch({site: html; selector=button[class*="artdeco-button--primary"][aria-label*="Invite"]}, "")) > 0}
{click: selector=button[class*="artdeco-button--primary"][aria-label*="Invite"]} {wait: delay=+1s}
{else}
{if: len(catch({site: text; selector=button[aria-label*="More actions"]}, "")) > 0}
{click: selector=button[aria-label*="More actions"]}
{else}
{click: selector=button[aria-label*="More"]} {endif} {wait: delay=+0.5s}
{if: len(catch({site: text; selector=div[role="button"][class*="artdeco-dropdown__item"][aria-label*="Invite to connect"]}, "")) > 0}
{click: selector=div[role="button"][class*="artdeco-dropdown__item"][aria-label*="Invite to connect"]}
{else}
{click: selector=div[role="button"][class*="artdeco-dropdown__item"][aria-label*="Invite"]}
{endif}
{wait: delay=+.5s}
{endif}
{click: selector=button[aria-label="Add a note"]}{wait: delay=+.5s} {click: selector=#custom-message; trim=left}Hi {linkedin-firstname: default=-}

[Message here ]

3 Likes