In a nutshell, I want to build a chrome extension that collects all data properties of an ad listing (e.g. title, description, photos etc.) that's open in one tab, then maps these to fields on a different site (to be opened in a headless browser) and submit the newly created listing. Basically, automate listing submission to multiple sites.
Now, opening the source url and crawling for the data won't be an issue. But how do I (headlessly in the background) populate and submit the target form, with the photo upload being implemented in js being the trickiest part.
So how do I go about this? Would it be possible to bundle and launch a selenium webdriver from within the background script at all or I should look into a completely different direction?
Many thanks for any tips you might have!