Sikuli Interview Questions & Answers

  1. Question 1. Explain What Is Sikuli?

    Answer :

    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. Question 2. Mention What Sikuli Is Comprised Of?

    Answer :

    Sikuli is comprised of:

    • Sikuli Script
    • Visual Scripting API for Jython
    • Sikuli IDE
  3. Adv Java Interview Questions

  4. Question 3. List Out What Are The Practical Uses Of Sikuli?

    Answer :

    Practical uses of Sikuli:

    • 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.
  5. Question 4. Mention What Is The Difference Between Selenium And Sikuli?

    Answer :

    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
  6. Adv Java Tutorial

  7. Question 5. Explain What Exactly Does Sikuli Script Consist Of?

    Answer :

    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 sikuli-logo
  8. Selenium Interview Questions

  9. Question 6. Explain How Sikuli Script Works?

    Answer :

    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().

  10. Question 7. Explain How You Can Retrieve The Name Of The Image On Pop-up?

    Answer :

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

    Method: 1

    query = capture()

    gotit = Filename [query] [0]

    popup(gotit)

    Method: 2

    popup(“select a icon in the”)

    query = capture()

    Result = Filename [query]

    If result:

    Popup(Result[0])

    else:

    popup (“unknown image”)

  11. Selenium Tutorial
    Graphic Design Interview Questions

  12. Question 8. Explain How You Can Create An Object For Screen Class And Why Screen Class Is Important?

    Answer :

    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()

  13. Question 9. Mention What Is The Short-cut To Kill The Sikuli Script?

    Answer :

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

  14. Appium Interview Questions

  15. Question 10. Mention What Is The Command That Is Used To Find Whether A Particular Element Present On The Screen?

    Answer :

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

    s.find(“<>”);

  16. Mobile Learning Essentials Tutorial

  17. Question 11. Explain What Is Region In Sikuli?

    Answer :

    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.

  18. Unigraphics NX Interview Questions

  19. Question 12. Explain What Is Sikuli Slides?

    Answer :

    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.

  20. Adv Java Interview Questions

  21. Question 13. How Sikuli Looks For A Location For Search Images?

    Answer :

    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

  22. Question 14. What Is The Command Setautowaittimeout And Getautowaittimeout() Command Is Used For?

    Answer :

    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.

  23. Question 15. Explain What Is Match In Sikuli?

    Answer :

    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.

  24. Web Graphics Design Interview Questions

  25. Question 16. Mention What Is The File Extension-name.py Is Used For?

    Answer :

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

  26. Question 17. Mention What Is The Command Used To Type A String On A Text Box?

    Answer :

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

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

  27. Mobile Developer Interview Questions

  28. Question 18. Is It Possible To Work In A Particular Region In Sikuli?

    Answer :

    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.

  29. Selenium Interview Questions