With the help of the Selenium IDE add-on for Firefox, I'm trying to publish a post on Facebook that will include a link, the post should also contain the usual 'link preview' (image and/or description text) scraped from the website I'm sharing.
For this purpose I played around with the following commands to no avail: "type" ; "typeKeys" ; "SendKeys"... the result was actually expected because these commands mimic typing, and if you manually write a link (by typing it) while trying to publish a post on Facebook - the "link preview" (image and/or description) won't be loaded. I also tried to emulate pressing "ctrl + [a/c/v]" in 3 separate commands as a workaround after the link as a text was written in the 'update your status' field, but no luck with those. See the visual examples below:
Selenium IDE contains:
Store | https://9gag.com/ | link
[[bunch of irrelevant commands in-between]]
typeKeys | class=_1mf _1mj | ${link}
Result: Screenshot 1 - imgur
If you publish the post this way, it'll end up like a plain text. Not a valid share. The thing I'm trying to achieve with Selenium IDE is what's shown on the screenshot below. You can achieve it by copying some absolute URL and pasting it (ctrl + v) inside the 'update your status' window on Facebook.
Result: Screenshot 2- imgur
Important: Workarounds are welcome as always, but here's what's not welcome as a workaround from other off-topic non-Selenium related reasons:
- Using this sharing form: facebook.com/sharer/sharer.php?u=[absolute URL you want to share]
- Using the mobile/touch version of Facebook
Thank you in advance for your time, and for the potential solution.