0

We are automating chrome extension with sahi.

we have loaded our chrome profile with sahi with extension added on profile.

we weren't able to get dom elements of extensions.

so we are navigating to the url: chrome-extension:/extension_id/popup.html

but sahi doesn't navigate to this url.

but i have read with selenium we are able to get it.

Please help me out, with this automation

Sohil
  • 1

2 Answers2

0

I'm not sure, I understand the problem here. But if you want to change some options on chrome. I use this Chromium Command Line Switches to find correct option to set when set browser on 'browser_types.xml`.

For example:

<options>--no-default-browser-check --user-data-dir=$userDir\browser\chrome\profiles\sahi$threadNo --proxy-server=127.0.0.1:$port --disable-popup-blocking --always-authorize-plugins --allow-outdated-plugins --enable-npapi --incognito</options>  
abiab
  • 83
  • 1
  • 8
0

You need to inject Sahi script into the pages of extension. One way to achieve this is as below.

  1. Download the extension source code.
  2. Then modifying the html pages such that Sahi injects its script in these pages.
  3. Post this, you can pack the extension again. Load this modified extension into the browser.
  4. Now you should be able to automate the pages of extension.

Reference: Sahi Pro Documentation