chrome_extension installation automation

Ask general questions here.
Posts: 18
Joined: Mon Apr 18, 2016 2:56 pm

chrome_extension installation automation

Post by pansujit » Thu Aug 11, 2016 8:37 am

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

Sujit Pandey

Posts: 4
Joined: Mon Jul 11, 2016 2:13 pm
Location: United States

Re: chrome_extension installation automation

Post by Ned612 » Mon Aug 22, 2016 5:12 pm

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
2016-08-22 11_41_38-Office Online - Chrome Web Store.png (193.88 KiB) Viewed 1305 times
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"