Using Sikuli can i automate fileUpload on mac osx platform using safari browser

Asked by deepak64

Hello,

Am working on Web automation on Mac Osx 10.11.6 platform using Selenium webDriver and testNG on Safari browser using Safari Extension , Am Stuck on automating file upload functionality . I searched over internet to find suitable solutions like Robot Api, which didn't work quite well. I want to know if i can automate fileUpload functionality using sikuli ?. How can i achieve it. Please respond to my query as am desperate to automate this. Looking forward for a quick response .

Thanks,
Deepak

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

SikuliX automates visually what you are doing manually on a screen using mouse and keyboard.

some steps like this:
- on the screen you find out, where to click to start an upload (capture image)
- you click to give focus to some file selection menu
- you enter the filename
- you click a button, that starts the upload (capture image)
- you wait for completion by waiting for some visual feedback on the screen

http://sikulix.com

just start with the SikuliX IDE to get used to the kind of workflows, we are using

the docs talk about the features and the net has many examples.
It helps to have some basic understanding about scripting with Python language.

Revision history for this message
deepak64 (deepak64) said :
#2

Hello,

As u mentioned above in the third step

- you enter the filename

On Mac Osx we don't have an option to enter file name , And my requirement is the file which am trying to upload i need to change the file name every time i upload on to the website reason being , once a file with a name is upload website again won't accept same file to be uploaded . In order to upload same file i have to re-name the file.

How can i get this working ?

Revision history for this message
RaiMan (raimund-hocke) said :
#3

With SikuliX it is rather easy:
What you can do manually with mouse and keyboard, you can do by scripting with SikuliX.

So if you can't do something manually, SikuliX will not help you to solve the problem.

Can you help with this problem?

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

To post a message you must log in.