Sikuli Guide For Beginners – Integrate Sikuli With Selenium Web driver,In this present article, you will learn Sikuli Graphical User Interface Automation Tool in-detail and how to integrate Sikuli tool with Selenium webdriver.
What is Sikuli Tool:
Sikuli is a Graphical User Interface open source Automation Tool. Using Sikuli Automation tool you could automate whatever we see on the computer screen. It is basically uses image recognition
technology to identify and control GUI elements on desktop. you all know that using Selenium can't automate windows/desktop objects. Integrating Sikuli with Selenium allows us to
overcome this issue. Using Sikuli tool with Selenium webdriver, we could automate windows/desktop objects,Sikuli can automate both Web and Windows based applications.
Most of testers are using Auto-IT tool to upload or download files in Selenium scripting but using Sikuli we can do it very easily.
Advantages of Sikuli Tool:
It is an open source tool for automation.
Easily to integrate sikuli with selenium.
Can automate Desktop / Windows application.
Easily automate Flash objects – Flash Testing.
It can be used on any platform such as Windows/Linux/Mac/Mobile.
Sample program to login to Remote Desktop:
public void normalTest() throws FindFailed {
ImagePath.setBundlePath("D:/Practicle/SikuliProject/src/test/resources/images/");
Screen s = new Screen();
s.type("r",Key.WIN);
System.out.println("Run window is open");
s.type("mstsc");
System.out.println("Run window entered mstsc");
s.click("ok.png");
System.out.println("Click on OK button");
s.wait("remote.png");
System.out.println("Wait for Remote desktop window appers");
s.type("ipaddress");
System.out.println("Remote Desktop entered ipaddress");
s.click("connect.png");
System.out.println("Remote Desktop clicks Connect button");
s.exists("windowsSecurity.png");
s.type("passsword");
System.out.println("Entered password in Windows Security");
s.wait("wok.png");
s.click("wok.png");
System.out.println("OK button is pressed in Windows Security");
s.exists("remoteWind.png");
}
}
No comments:
Post a Comment