Package org.sikuli.api

Examples of org.sikuli.api.MultiStateTarget


    ImageTarget checked = new ImageTarget(Images.CheckedCheckbox);
    // create an image target based on an image of an unchecked checkbox
    ImageTarget unchecked = new ImageTarget(Images.UncheckedCheckbox);
   
    // create a multi-state target to look for checkboxes
    MultiStateTarget target = new MultiStateTarget();
    // add the "checked" state specified by the image target of a checked checkbox
    target.addState(checked, "checked");
    // add the "unchecked" state specified by the image target of an unchecked checkbox
    target.addState(unchecked, "unchecked");
       
    // find all the checkboxes, both checked and unchecked
    List<ScreenRegion> checkboxes = s.findAll(target);
    for (ScreenRegion c : checkboxes){
      // get the state of each checkbox
View Full Code Here

TOP

Related Classes of org.sikuli.api.MultiStateTarget

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.