6 votes
Accepted

How to implement a lock in Selenium with Java?

My answer borrows from NarendraC's answers. @Test (priority=1) public void CreateNew() throws Exception { Process p = Runtime.getRuntime().exec("exeFiles\\CreateNew.exe"); p.waitFor(); ...
Paul Muir's user avatar
  • 3,282
5 votes

How to pause your script in Selenium untill your AutoIt script is completed?

Simpler solution is try a waitFor() on your process, this waits until the process exits. @Test (priority=1) public void CreateNew() throws Exception { Process process = Runtime.getRuntime()...
Niels van Reijmersdal's user avatar
3 votes
Accepted

How do we run desktop automation using AutoIT in a virtual machine or a headless machine

AutoIT, Sikuli or Kantu Automation all work fine in a virtual machine (e. g. Virtual Box). If you have a problem there, please provide details. On the other hand, these tools need a desktop - so they ...
Bobby231's user avatar
  • 399
2 votes

How to take the screenshot of a window based GUI application?

Java code to take screenshot with below flexibility Take screenshot of only active window (not whole desktop, however can be easily modified to do so.) Can be used to save as popular image ...
Maddy's user avatar
  • 21
2 votes

Uploading a file to a web site: how to handle Windows dialog to choose a file

I also faced the same problems using AutoIT and Sikuli both are not give stable solutions for me for my works. Now i'm using Robot class with selenium for upload file Click File Upload Button ...
Sachintha's user avatar
  • 380
2 votes

Clicking Windows Calculator buttons with AutoItLibrary for Robot Framework and RIDE

Set mouse coordinate as 0 using set option: Auto It Set Option 'MouseCoordMode' 0 Auto It Set Option 'GUICoordMode' 0 Auto It Set Option 'PixelCoordMode' 0 https://www....
PDHide's user avatar
  • 11.1k
2 votes

How to make AutoIt script identify browse window when run in remote machine with Selenium grid?

I assume that the remote machine is locked, and thus AutoIT can not work. It works on your desktop because it is not locked. Solution: Keep the desktop unlocked (no screensaver etc). Of course, this ...
stevenz's user avatar
  • 111
1 vote
Accepted

Can't import AutoItLibrary in RIDE/Robot Framework

Check your python architecture ( is it 32 or 64 bit) Just type python and see For 32: Open cmd in "Run as administrator" mode run the command pip install robotframework-autoitlibrary Now ...
PDHide's user avatar
  • 11.1k
1 vote
Accepted

Importing test library 'AutoIt' failed: ModuleNotFoundError: No module named 'AutoIt' Error

*** Settings *** Documentation This is the script for Create Sales Visit Repository Library AutoItLibrary 5 ${True} *** Test Cases *** You should pass the above arguments to the Library ,...
PDHide's user avatar
  • 11.1k
1 vote
Accepted

How to do test automation of desktop applications using autoIT

So i am returning custom status code from the autoIT script if the step passes : Here WinActivate returns zero if the step failed ( means the window is not present) #include <ScreenCapture.au3>...
PDHide's user avatar
  • 11.1k
1 vote

Unable to upload file even using autoit as my IE browser taking long to open upload windows popup

Depending on what you are testing (i.e. the actual process of using the upload control, or just the ability to upload / validate a file) you can skip the upload popup entirely. This also means you don'...
Klynt's user avatar
  • 544
1 vote

What is Component Object Model(COM) and Java-com Bridge(JACOB)

Why do you want to integrate AutoIT into selenium? If it would be more correct to say why would you want to integrate Java with AutoIT? There are much simpler ways to do the stuff. Java definitely has ...
Artur Korobeynyk's user avatar
1 vote
Accepted

How to Detect if Autoit script is failed or not in selenium (java)

What you are wanting to do is look for the exit code from AutoIT. You can set the exit code using the exit keyword. Typically, an exit code of 0 is success anything else is a failure or gives other ...
Paul Muir's user avatar
  • 3,282
1 vote

How to implement a lock in Selenium with Java?

Even why cant you try "dependsOnMethods", This will be useful in that sense. Check out below example for use: @Test (priority=2, dependsOnMethods={"CreateNew"})
Narendra Chandratre's user avatar
1 vote

Automated Testing Involving Internet Explorer_Server Controls

This is super painful. My company ended up purchasing Test Complete to make this reasonably testable. It has some windows spy tools to find that order of objects and good hooks into the system. You ...
alanmbarr's user avatar
  • 131

Only top scored, non community-wiki answers of a minimum length are eligible