Skip to content

Screenregion find method call sinks . Nothing comes out in linux #69

@karthikeyand

Description

@karthikeyand

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions