How to use AutoIt/AutoitLibrary in robot framework

248 views
Skip to first unread message

Sheetal Shahare

unread,
Mar 9, 2018, 2:36:24 PM3/9/18
to robotframework-users
Hello,

I am sure this question is being asked several times.
But there is no concrete answer.

I am testing file download functionality which requires interaction with windows dialogue.
AutoIt can be used to do such task but don't know how.

-How to use AutoIt library in Robot framework?

-Which is preferable SiKuli or AutoIt ?

could you please help me with some coding

Parthiban

unread,
Apr 6, 2018, 1:52:59 AM4/6/18
to robotframework-users
Hi,

1. First install AutoIt library refer  https://github.com/bulkan/robotframework-archivelibrary

2. Open RIDE Select your test suit or resource.

3.Click Library button on the right side of RIDE window and type "AutoItLibrary" in Name field and click OK.

Now you can call AutoIt methods in your case.

Anne kootstra

unread,
Apr 6, 2018, 4:30:05 PM4/6/18
to robotframework-users
From your description it seems to me that you're trying to download a file in a browser. If this is the case then I'm assuming that the file download dialog is the window you talk about. 

On StackOverflow I've posted an answer to a question: How can I enable download a file using a headless chrome browser in robot framework? that sets the download directory and auto-downloads the desired file. Hopefully this answers your question.

If this is not what you're trying to do, describe what and how your downloading the file. Athough AutoIT is a powerful tool, but not always the best one for the job. Sometimes using command line utilities are a better option to fetching a file from a remote location. 

Sikuli is a tool that uses image based recognition to click and input text. The challenges with this kind of approach is that it's pretty much click-and-input only. Text recognition shouldn't be relied on which limites dynamic tests. So, it useful in some cases, but it's not my tool of choice.

In case you want to use AutoITLibrary, go to: https://github.com/lucyking/robotframework-autoitlibrary. I'm presuming that you're familiar with AutoIT itself.

--Anne


Op vrijdag 9 maart 2018 20:36:24 UTC+1 schreef Sheetal Shahare:
Reply all
Reply to author
Forward
0 new messages