Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
karthikeyand opened this issue Nov 11, 2014 · 0 comments
Open

Comments

@karthikeyand
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant