Can we automate Chrome Extensions?
Browser extensions are embedded add-ons rather than regular HTML files. As the extension is out of scope, you can’t simulate user clicks, inspect elements, or run other such activities.You can use Selenium with Chrome extension source viewer to testChrome Extension. YOu can use ChromeOption to launch Chrome session with Extension options.addExtensions (new File(“/path/to/extension.crx”));
Here are the Steps