Page 1 of 1

chrome_extension installation automation

Posted: Thu Aug 11, 2016 8:37 am
by pansujit
hello to Everyone,
I am getting too much difficulty to work around chrome extension.
I have to search and install one app called “systran-translator and dictionary”, I can go until the “Add to chrome” by enabling chrome://accessibility --- ON. But I neither click nor select the pop up.
How can I proceed for such cases.

Thanking you

Sincerely
Sujit Pandey

Re: chrome_extension installation automation

Posted: Mon Aug 22, 2016 5:12 pm
by Ned612
Once you enable accessibility in Chrome, you should be able to track the 'add to chrome' button. You may have to manually track through the spy tree to find the button to find it. Sometimes disabling the Ranorex extension temporarily will help track the button.

Turning on accessibility manually: chrome://accessibility/> Global accessibility mode: on
Turning on accessibility Automatically: Launch Chrome with --force-renderer-accessibility argument. This argument can be used when launching Chrome in Ranorex.

A couple things to note:
  • - Accessibility automatically turns off when you close Chrome. There is no way to save this option and you must re-enabled it every time you launch Chrome (either by the accessibility page or launch argument).
    - Ranorex cannot find this object unless accessibility is on and must be enabled when running test
    - All other instances of Chrome must be closed prior to launching with the argument
2016-08-22 11_41_38-Office Online - Chrome Web Store.png
Also, if you have the unpacked extension, you can install it directly using command line:

Code: Select all

Command: <path to chrome> --load-extension=<path to extension directory>
Example: chrome.exe --load-extension="c:\MyExtension"