Search code examples
selenium-webdrivergoogle-chrome-extensionpuppeteer

Is it passible to make a Chrome Extension work as a backend?


I have this project that I want to explore it is possibility and see if it is possible to get it done.

So I have one website that has a Chrome extension = Users install this Chrome extension to automate some tasks (Working- Current Status)

I want to give users the option to automate these tasks for them in the backend on my server. (What I want to get built)

In short: I have the automation already done, but the user must install the Chrome extension and do it by hand. I want to automate this part on the server. so we automate (the Chrome extension work).

So my idea is to host this Chrome extension on my server, then using API we receive requests from my website, then do the automation, and then send the results/status back to the website.

I was reading that using Selenium or some automation library and then loading this Chrome extension to each instance of the browser then doing this automation, but don't know if it is possible.

is this possibele? any tips is really appreciated

I have the chrome extention done working fine on client side.


Solution

  • You can use Puppeteer for this. You can create non-headless browser instances on your server and then install your extensions to created browser instances. Puppeteer with Chrome extension