Require help to solve file upload issue on BrowserStack using AutoIt / Sikuli

Asked by Ajay Borawake on 2019-05-18


We are writing automation scripts in selenium for one of our application. While working on it we came across one file upload functionality where we need to just click on browse button and click on the "Cancel" button on the consecutive window (without uploading any file).

We have written the script for the same and manage to achieve this functionality using Robot class. The script is working fine on our local machine in IE, Edge, Firefox and Chrome browser(latest version), but when we run the same script on BrowserStack (in IE, Edge, Firefox and Chrome browser) it is not working.

We also tried (1) Jacob API (along with AutoIt) (2) Sikuli, but those are also working only on local and not on BrowserStack.

Can you please help us to achieve this functionality on BrowserStack on the above mentioned browsers.

If this is somethings which is not possible on BrowserStack, then you please let us know any other alternative cost effective tool for cross browser testing using selenium.

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

I can only speak for SikuliX:
What you can click manually, you can click with SikuliX (which uses Java Robot inside), if neither the application (e.g. games) nor the system (e.g. Windows admin tasks) are blocking these kind of mouse and/or keyboard actions.

Hence if there is nothing to click manually, then SikuliX will not help, since it only works on the "pixel level" and not on the implementation level as Selenium does.

Ajay Borawake (ajayborawake) said : #2

Thanks RaiMan for your quick reply.

In our case when we run our script on BrowserStack from our local eclipse, though the execution happens on BrowserStack it is processing script which on our local. So it tries to search the button on our local to click but it does not find it as the button is on BrowserStack.

Please confirm if SikuliX will work in above situation.

RaiMan (raimund-hocke) said : #3

SikuliX only works against things, that are visible on the screen at runtime.

Ajay Borawake (ajayborawake) said : #4

Ok, do you know any other option or tool which we can use to achieve above mentioned functionality on BrowserStack ?

RaiMan (raimund-hocke) said : #5

Sorry, no.

What abaout asking on stackoverflow?

Can you help with this problem?

Provide an answer of your own, or ask Ajay Borawake for more information if necessary.

To post a message you must log in.