Does anyone have an example of an automated UI.Vision test script? including the installation of UI.Vision.
I’ve tried a number of ways to script the installation of Chrome or Firefox, and install the UI.Vision extension, but all attempts fail to setup the extension prior to load a test page/macro. I’ve tried both Ubuntu and MacOs.
Thanks for the reply Timo. Yes, we are looking to fully automate some UIvision tests. The target environment will be a Jenkins CI pipeline, running Ubuntu Docker images, with Chrome (or Firefox) and the UI.Vision extension.
The Dockerfile installs Chrome, and then the following command run’s the tests:
This tries to install the extension unpacked, but from what I seen in testing, it doesn’t matter whether it is packed or unpacked.
I tried a similar approach with Firefox, but add the extension XPI to the user’s .mozilla directory (/home/firefox/.mozilla) prior to launching the browser.
This is a very interesting case. I assume the variable is only initialized after UI Vision is opened at least once. But in your case, that never happens, as it is always a fresh install. We will test this, and try to fix it soon. I will update the post when we know more.