How to use AutoItLibrary in Robot framework

4,901 views
Skip to first unread message

robotfr...@gmail.com

unread,
Aug 17, 2017, 8:31:47 AM8/17/17
to robotframework-users
Hi,

Can anyone please help me how to use AutoItLibrary and its keywords(if any.) in ROBOT farmework

I want to upload file from my web application but cannot use choose file keyword as we don't have 'file input field' but just a button.
When Clicked on that file upload button windows pop-up opens

How can we handle this situation?

Thanks in Advance

Reema

Mikhail Goloulnikov

unread,
Aug 17, 2017, 9:01:28 AM8/17/17
to robotframework-users
I have the same challenge and after several unsuccessful attempts with AutoIt and ImageHorizon on VM with "correct" approach (screen image and so on) I`ve just use Click To The Above Of keyword from the ImageHorizon library with given coordinates for the dialogue/files.

Something like

click element               xpath = //div[@class="fileUpload btn btn-primary"]
@{coordinatesDoc}= Create list ${280} ${380}
@{coordinatesBut}= Create list ${780} ${530}
Click To The Above Of ${coordinatesDoc} 3
Click To The Above Of ${coordinatesBut} 3



четверг, 17 августа 2017 г., 15:31:47 UTC+3 пользователь robotfr...@gmail.com написал:

Bryan Oakley

unread,
Aug 17, 2017, 9:02:28 AM8/17/17
to robotfr...@gmail.com, robotframework-users
There has to be an input field in the html for the form to work. Are you absolutely certain there isn't a field that is hidden on the page?

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Mikhail Goloulnikov

unread,
Aug 17, 2017, 9:23:42 AM8/17/17
to robotframework-users, robotfr...@gmail.com
But the problem here is that this input field might have disabled attribute


четверг, 17 августа 2017 г., 16:02:28 UTC+3 пользователь Bryan Oakley написал:

YS Kumar

unread,
Aug 23, 2017, 7:18:34 AM8/23/17
to robotframework-users
HI,

Use these keywords and try to upload a file using AutoIT

1) Use Tabloop and  Move to Upload button
2) Send Enter
3) New windows is opened
4) Win activate  Titile of new window
5) Same use Tabloop and perform opertation

I hope this help.......!

Sukesh

Sheetal Shahare

unread,
Mar 9, 2018, 2:42:44 PM3/9/18
to robotframework-users
Hi..

I have an Idea how to use AutoIt
But could you tell me how to invoke .exe file(once we compile in Autoit) in robot framework ?
could you please provide some coding.

Thanks,
Sheetal

NIKHIL RAJGARHIA

unread,
Apr 11, 2018, 1:17:00 AM4/11/18
to robotframework-users
Sheetal, I think its probabbly too late to reply. Bt still, you can use Run from OS library(http://robotframework.org/robotframework/latest/libraries/OperatingSystem.html#Run) to run the '.exe' file.

kumar naik

unread,
May 15, 2019, 8:17:55 AM5/15/19
to robotframework-users
Sheetal, it too late to reply, but here is the script i tried

Run <Exe file path>

subash valla

unread,
Feb 3, 2020, 4:09:03 PM2/3/20
to robotframework-users
Hello Sheetal,

I am having hard time in installing AutoIt in Robot-framework. I would appreciate, if you can provide some guidelines for installing the AutoIt libraries.

Regards,
Subash

Ru eL

unread,
Feb 4, 2020, 7:42:31 AM2/4/20
to robotframework-users
I'm using the "Choose file" keyword to upload from my web application. Once you use this keyword, you observe that no windows dialog open, 
it just directly uploads the file as long as you declare the proper arguments of this keyword.


Ex. 
*** Setttings ***
Library        SeleniumLibrary



*** Test Cases ***
Upload File
          Choose File        "${put_your_locator_here}"            "${link_of_your_desired_file_to_upload}"

Ru eL

unread,
Feb 4, 2020, 7:42:31 AM2/4/20
to svall...@gmail.com, robotframework-users
I had tried before the AutoIt library robot framework with Python 3 installed. Unfortunately,
I got an error, and I have read some comments that it will not work when using Python 3.
It will work with Python 2.

On Tue, Feb 4, 2020 at 9:13 AM Ru eL <ruelar...@gmail.com> wrote:
Hi Reema,

I'm using the "Choose file" keyword to upload from my web application. Once you use this keyword, you observe that no windows dialog open, 
it just directly uploads the file as long as you declare the proper arguments of this keyword.


Ex. 
*** Setttings ***
Library        SeleniumLibrary



*** Test Cases ***
Upload File
          Choose File        "${put_your_locator_here}"            "${link_of_your_desired_file_to_upload}"






--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/robotframework-users/6259c8e2-0e79-4353-8367-14b4a7a8a154%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages