UrbanPro
true

Learn .Net Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Overview on Auto IT and use in selenium webdriver

S
Surendra Jaganadam
10/04/2017 0 0

AutoIt v3 is a freeware BASIC-like scripting languages designed for automating the windows GUI and general scripting. It used a combination of simulated keystrokes, mouse movements and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages. Auto it is also very small, self contained and will run on all versions of Windows.

In general Auto it is just another automation tool like selenium but unlike Selenium it is used for Desktop automation rather than web application. it is a powerful tool and it just not automate desktop windows, button & form, it automates mouse movements and keystrokes too.

We need to integrate this auto it code in our selenium.

simply we will handle this window based file uploading scenario in auto it , later we will selenium program where in which we will call this auto it code.

if at we would like to perform operations on web application we can simply identify the object using a browser, like the same way in order to perform operations on any window we need to identify the properties for that window or objects on that window.

steps to configure:

1) download complete Autoit from its official website

https://www.autoitscript.com/site/autoit/downloads/

3) goto programming files under C driver and check fot auto it folder

4) open the frozen tool which will helps in getting various kinds of properties for an object

5) now we need to open the autoit editor by cliking on below :

6) the editor will display as below

7) open the browser and open the application which is having window based alerts

8) get the popup window properties using AUTOIT finder , simply drag it and drop on the desired object corresponding object properties will display in the finder

9) we need to write a program which will perform the desired operations like selecting the window and entering a value to that window

10) Window activate is the command which is used to activate the window , so simply save your test script and compile that an executable file will be created at the same location where you saved the script, simply double click on the executable file and hence it will perform the actions

11) controlset text is a command which we used to enter a value into a search field

12) control click is a command which will perform click operation

13) after whole script got prepared save it and compile it

14) goto the folder where we saved this file and simply double click on the executable file and check whether it is performing the actions or not

15) create a new test script in webdriver and now whatever the file we have created we need to call that file in our webdriver program for which we are using pr

in order to call the executable file we have 2 options:

1) Process Builder

ProcessBuilder p=new ProcessBuilder("d:\\Jeevan.exe","","Open");

                        p.start();

2) Run time execution

Runtime.getRuntime().exec("d:\\Jeevan.exe");

0 Dislike
Follow 1

Please Enter a comment

Submit

Other Lessons for You

Class, Object and Methods in JAVA
Lesson-1: Class, Object and Methods of Java can be compared with body, heart and brain. Without these 3 things, Java does not exist. If you Google the above 3 items, you will find many definitions. But...

Why JAVA is Platform Independent?
Java is platform independent language because Java has a JVM {Java Virtual Machine} which converts a java code into a byte code which can run on any OS. That means, JVM is working as a sub-platform to...

What Points Determines A Candidate Is Fit For A QA Job Or Not?
Following are some(base) Points Which Determine a Candidate is Fit for the QA Job or Not: 1.On Curiosity and passion: Being a software tester means being curious for everything. You need to mirror a child...
I

ICreative Solution

0 0
0

What is debugging? and its importance
Debugging is a step by step process of identifying the errors present in the code. The question here is what kind of mistakes? Usually errors are of two types.1. Syntax errors2. Logical errors.Syntax...

Use of Service Locator Pattern
If we want to reuse the java code that should be the best approach w.r.t re-usability, maintanence and saving time to concentrate on our own businbess logic/requirement. In the similar approach many patterns...
M
X

Looking for .Net Training Classes?

The best tutors for .Net Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn .Net Training with the Best Tutors

The best Tutors for .Net Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more