← Back to team overview

sikuli-driver team mailing list archive

[Question #293532]: Sikuli could locate a particular image on the screen , but still its unable to click on that image

 

New question #293532 on Sikuli:
https://answers.launchpad.net/sikuli/+question/293532

Using the below code i could verify that a particular image is present in the screen , but still i am unable to click on the particular icon
CODE:

public class s2 {
    
    public static void main(String[] args) throws FindFailed{

           
        Socket s= new Socket("127.0.0.1", 5933); 
      
        s.setSoTimeout(1000);
        
        s.setKeepAlive(true);
        
        ConnectionController cc = new ConnectionController(s);
        
        cc.openConnection(0); 
        cc.setPixelFormat(0, "Truecolor", 32, 0);  
        
        cc.start(0);   
        
        Thread.sleep(2000); 
        VNCScreen vnc = new VNCScreen(); 
      Region r1=vnc.exists("COPY.png");
    if  (r1 != null)
        System.out.print("exists");  
    else
        System.out.print("doesn't exists");
        
    
      r1.click("COPY.png"); ------------------------> could locate the image , but still it clicks on some random region.
           
        }
}

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.