Re:Introducing chrome.scripting
by CyberRabbi on Wednesday June 09, 2021 @01:02AM
(#27444391)
I think you’re using the wrong API. For remote automation you should be using the chrome devtools protocol[1]. It is meant for your purposes and gives you full script injection functionality and dom access.
[1]: https://chromedevtools.github.io/devtools-protocol/