Package org.sikuli.api

Examples of org.sikuli.api.DesktopScreenRegion.wait()


        ScreenLocation labelLocation = Relative.to(event.getScreenRegion()).topLeft().above(20).getScreenLocation();
        canvas.clear().addLabel(labelLocation,txt).display(1);
      }         
    };

    ScreenRegion personIcon = s.wait(new ImageTarget(Images.PersonIcon),1000);   
    canvas.clear().addBox(personIcon).display(1);
   
    ScreenRegion statusIcon = Relative.to(personIcon).right(30).getScreenRegion();
    canvas.clear().addBox(personIcon).display(1);   
View Full Code Here


    simulator.resume();
   
    canvas.clear();
   
    // Finding color bullets
    ScreenRegion greenBullet = s.wait(new ColorImageTarget(Images.GreenBullet),10000);
    ScreenRegion redBullet = s.find(new ColorImageTarget(Images.RedBullet));
    ScreenRegion silverBullet = s.find(new ColorImageTarget(Images.SilverBullet));
   
    canvas.addBox(greenBullet);   
    canvas.addLabel(Relative.to(greenBullet).topLeft().above(20).getScreenLocation(), "green");
View Full Code Here

    mouse.click(r.getCenter());   

    imageURL = Images.ThumbIcon;               
    imageTarget = new ImageTarget(imageURL);

    r = s.wait(imageTarget, 5000);
    mouse.click(r.getCenter());

    imageURL = Images.CheckedCheckbox;               
    imageTarget = new ImageTarget(imageURL);         
View Full Code Here

    mouse.click(r.getCenter());

    imageURL = Images.CheckedCheckbox;               
    imageTarget = new ImageTarget(imageURL);         

    r = s.wait(imageTarget, 5000);
    mouse.click(r.getCenter());
   
    imageURL = Images.OSXDockIcon;
    imageTarget = new ImageTarget(imageURL);
    r = s.wait(imageTarget, 5000);
View Full Code Here

    r = s.wait(imageTarget, 5000);
    mouse.click(r.getCenter());
   
    imageURL = Images.OSXDockIcon;
    imageTarget = new ImageTarget(imageURL);
    r = s.wait(imageTarget, 5000);
   

  }
}
View Full Code Here

    ScreenRegion s = new DesktopScreenRegion();
       
    Target searchButtonImageTarget = new ImageTarget(Images.TwitterSearchButton);
       
    ScreenRegion searchButton = s.wait(searchButtonImageTarget, 5000);
   
    // Pause one second to allow search results to load
    pause(1000);       
   
    keyboard.type("sikuli");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.