Handle windows pop up using AutoIt in Selenium

Handle windows pop up using AutoIt in Selenium

What is AutoIt?

utoIt is an open-source freeware tool which is used for handling windows based pop-ups. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible with other tools or languages.

AutoIt is also very small in size, self-contained and will run on all versions of Windows out-of-the-box with no annoying “runtimes” required.

In layman’s words, it is just another tool like Selenium but unlike Selenium used for Desktop automation rather than web automation.

It is a powerful tool and it not only automates desktop windows, button & form, but it also automates mouse movements & keystrokes too. Just like Selenium IDE, it also gives you the recording capability which generates the scripts for you to use the same script in your test.

AutoIt Features

  1. Easy to learn: It is just another scripting language and very easy to use.
  2. Simulates keystrokes: Where ever it is required to use keystrokes in your test, you can use this, for example, pressing Enter on any dialog box and typing username and password on the popup which you cannot simulate with Selenium.
  3. Simulate mouse movements: Like keystrokes, there can be situations when you are required to simulate the mouse movements and it can be handled using AutoIt.
  4. Scripts can be compiled into a standalone executable: It means that you do not require any IDE to run your scripts, you can easily convert your automation scripts into .exe files which can be run on their own.
  5. Windows Management: You can move, hide, show, resize, activate, close and pretty much do what you want with windows. Windows can be referenced by title, text on the window, size, position, class and even internal Win32 API handles.
  6. Windows Controls: Directly interact with edit boxes, checkboxes, list boxes, combos, buttons, status bars without the risk of keystrokes getting lost. Even work with controls in windows that aren’t active!
  7. Help file and large community-based support forums: You face any issue or get stuck anywhere, the large community of users is there to help you.

Steps to install AutoIt: https://www.softwaretestinghelp.com/autoit-tutorial-to-download-write-autoit-script/


Post a comment

Login to Portal