Blog Archive

Theme images by Storman. Powered by Blogger.

Saturday, August 13, 2016

Latest Top 15 Sikuli Interview Questions And Answers.


Latest Top 15 Sikuli Interview Questions And Answers. Latest Sikuli Interview Questions and Answers. Most Frequently Asked Sikuli Interview Questions And Answers.

1) Explain what is Sikuli?

Sikuli is a tool that uses “Visual Image Match” method to automate graphical user interface.  All the web elements in Sikuli should be taken as an image and stored inside the project.

2) Mention what Sikuli is comprised of?

Sikuli is comprised of

Sikuli Script
Visual Scripting API for Jython
Sikuli IDE

3) List out what are the practical uses of Sikuli?

Practical uses of Sikuli is that

It can be used to automate flash websites or objects
It can automate window based application and anything you see on screen without using internal API support
It provides simple API
It can be easily linked with tools like Selenium
Desktop application can be automated
Sikuli offers extensive support to automate flash objects
To automate desktop it uses powerful “Visual Match” and Flash objects
It can work on any technology-.NET, Java,

4) Mention what is the difference between Selenium and Sikuli?

Sikuli Selenium
It provides extensive support to automate flash objects
It has simple API
It uses visual match to find elements on the screen. So we can automate anything we see on the screen
It can automate web as well as windows application
It cannot automate flash objects like video player, audio player,
It has got complicated API
It does not have visual match
It can automate only web applications

5) Explain what exactly does Sikuli Script consist of?

Sikuli Script is a combination of Jython and Java library that automates GUI interaction using image pattern to direct mouse or keyboard events.

The main segment of Sikuli Script is a Java library which contains two parts:

awt.Robot: It delivers mouse and keyboard events to appropriate locations
C++ engine based on OpenCV: It searches given pattern on the screen

6) Explain how Sikuli Script works?

To run a Sikuli Script, Sikuli IDE creates an org.python.util.PythonInterpreter and passes a few lines of headers to the interpreter automatically. Once these headers are defined or set, the .py script is simply executed by PythonIntepreter.execfile().

7) Explain how you can retrieve the name of the Image on pop-up?

You can retrieve the name of the image on pop-up in two ways

Method: 1

query = capture()

gotit = Filename [query] [0]


Method: 2

popup(“select a icon in the”)

query = capture()

Result = Filename [query]

If result:



popup (“unknown image”)

8) Explain how you can create an object for Screen Class and why Screen class is important?

In Sikuli, screen is a base class, for this screen class we have to create an object first only then we can access all the methods provided by Sikuli.  Syntax for sikuli includes

Syntax for creating an object in Sikuli: Screen s=new Screen()

9) Mention what is the short-cut to kill the Sikuli Script?

To kill the Sikuli Script, you have to use the short cut Alt+Shift+C.

10) Mention what is the command that is used to find whether a particular element present on the screen?

To find a specific element on the screen you use the syntax

s.find(“<<image name>>”);

11) Explain what is Region in Sikuli?

In Sikuli, Region class provides an abstraction for the screen regions returned by the find() function matching a given visual pattern.  Its attributes include X and Y co-ordinates, height, width, and similarity score.

12) Explain what is Sikuli Slides?

Sikuli slides can be used to test and automate anything you see on the screen using your presentation slides. For automating repetitive tasks and to crate PowerPoint presentation.

13) How Sikuli looks for a location for search images?

For Sikuli, it maintains a list of location to locate images when they are not found in the Sikuli folder.  Sikuli will use following the command to look, add or remove images from the folder.

getImagePath(): # getImagePath() returns a Java array of Unicode strings
addImagePath: It adds a new path to the list of image search path
removeImagePath : It removes a path from the list of image search paths

14) What is the command setAutoWaitTimeout and getAutoWaitTimeout() command is used for?

The setAutoWaitTimeout command is used to determine the maximum waiting time for all subsequent find operations. While the getAutoWaitTimeout is used to determine the current value of the maximum waiting time for find operations.

15) Explain what is Match in Sikuli?

In Sikuli, Match is a class available in Sikuli Package.  Class match extends class Region, all methods of class region can be availed with a match object.  An object of class Match displays the result of a successful find operation.

16) Mention what is the file is used for?

The file contains the classes and methods, which represents the API; that might be used in a Sikuli Script.

17) Mention what is the command used to type a string on a Textbox?

To enter particular text on the text box this method is used and command is

s.type(“<<image name>>” , “String to be typed”);

18) Is it possible to work in a particular region in Sikuli?

Yes, it is possible to work with a particular region in Sikuli.  Based on the location of a unique pattern (image) on your display, you can also increase the size of the region.

0 on: "Latest Top 15 Sikuli Interview Questions And Answers."