You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Linux i have a sikuli code like this inside my Selenium framework code
try {
ScreenRegion s = new DesktopScreenRegion();
Rectangle newBounds = new Rectangle(0,30,300,400);
s.setBounds(newBounds);
s.setScore(0.5);
logger().info("Desktop bounds "+s.getBounds().getWidth());
Target target = new ImageTarget(new File("/scratch/aime1/pic-2.png"));
if (target != null){
logger().info("Target not null ");
ScreenRegion r = s.find(target);
logger().info("searched in desktop ...");
logger().info("target found "+r.getBounds().getWidth());
}else{
logger().info(" target returned null ");
}
} catch (Exception e) {
logger().info("Exception in sikuli code");
}
In the above code , i get to the point where the debug says "Target not null" , but after that
s.find(target) ,does not return a valid value or null (i tried putting a if not null as well after this) . Control does not reach the debug "searched in desktop" . There seems to be no exception.
Any specific issues w.r.t to linux or selenium here ?
The text was updated successfully, but these errors were encountered:
In Linux i have a sikuli code like this inside my Selenium framework code
try {
In the above code , i get to the point where the debug says "Target not null" , but after that
s.find(target) ,does not return a valid value or null (i tried putting a if not null as well after this) . Control does not reach the debug "searched in desktop" . There seems to be no exception.
Any specific issues w.r.t to linux or selenium here ?
The text was updated successfully, but these errors were encountered: