AutoIt requirement for Win32Com

87 views
Skip to first unread message

Kai Yang Tay

unread,
Jul 6, 2018, 4:52:28 AM7/6/18
to robotframework-users
Hello community.

I have been trying to achieve robotframework testing without installing python on my windows. I have been using maven-robotframework-plugin with Selenium2Library included in maven src/test/resources/robotframework/libraries.
It seems to work well for Selenium2Library, but when i tried to add AutoItLibrary using the same approach, i am stuck at working around a part where win32.client tries to import win32api. I can't seem to find any library around that provides win32api. If i wish to avoid install python to my operating system, is there a way to add a portable library for win32api?

Hélio Guilherme

unread,
Jul 6, 2018, 6:11:31 AM7/6/18
to robotframework-users
Why not install python? It is the best programming language ;).

There is a Python Portable install, see if you can use it.


--
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.



--
My Favorite Open Source Projects
awsome-lists gretl meld robotframework wxPython

Anne kootstra

unread,
Jul 10, 2018, 2:37:16 AM7/10/18
to robotframework-users
To answer your question, win32 API is not available under Java. So, the required technical modules the AutoIT library depends on do not work under Java and no alternative or workaround exists.

-Anne

Op vrijdag 6 juli 2018 10:52:28 UTC+2 schreef Kai Yang Tay:

David

unread,
Jul 11, 2018, 1:33:55 AM7/11/18
to robotframework-users
Sadly alternative UI automation libraries tend to be python based as well, but maybe they might run under Java/Jython. You might want to see if Sikuli, AutoPy, PyAutoGUI, etc. will work for you via Jython in Java version of RF.

You could also consider automation interfaces that might not need python that hopefully is portable that you can run on the system under test and interface to it with the Java based RF package you have via Selenium2Library via the RemoteWebDriver option (or the AppiumLibrary equivalents).

There are some tools that can be used via WebDriver interface for desktop UI automation like https://github.com/Microsoft/WinAppDriver.

Anne kootstra

unread,
Jul 11, 2018, 1:52:46 AM7/11/18
to robotframework-users
I think that the SikuliLibrary would be a good approach. At it's core Sikuli is a java application and the library has two components: Python Library and a remote RPC java server. The Java Server component shouldn't be too dificult to convert to a custom Java Library as the Python part of the solution is rather thin and mearly a facade exposing the java functions. 

-Anne

Op woensdag 11 juli 2018 07:33:55 UTC+2 schreef David:
Reply all
Reply to author
Forward
0 new messages