Use sikuli-script on different OS

278 Views Asked by At

I'm writing scripts on Java with Selenium WebDriver. To navigate with Windows Windows and other programs I decide to use sikuli-script in my project. But, I didn't think what will be if these scripts will run in other mashines on MAC OS, Linux, there will be other pictures and my script will crush. First what I think it's take pictures on all mashines and put in different folder for different mashines. For example I will have 3 folder for 3 Operation System: Windows, Linux, MAC. And if test will start on Linux it will take "navigate pictures" from Linux folder, if MAC or Windows - the same (from MAC or Windows folders). But may be there's some better decision of it?


Yeah, and don't write me to use AutoIT, cus it's not working in my case, because I need control Java app on Windows, and AutoIT can't work with it.

1

There are 1 best solutions below

1
On

Lets Optimize the Download operation by avoiding clicking on Download file, Open Download and then saving it to Disc. We can use Selenium itself to perform all the operations by using browser profiles with the required configurations.

All the required changes you need to do with the Firefox and on Safari Mac can be found at MAC and for Firefox also please refer to the Link where you can get more ideas around the scenario. Downloading file using Selenium