title: Sikuli: I am not able to click on an Element present in a PopUp window
body: <p>I am new to the Sikuli API and I am using the Sikuli-java-jar file. I want to successfully click on a desktop element using the screen and pattern classes.</p>
  
  <p>So I was trying to create an automation script to install software.
  I am able to successfully launch the installer but not able to click on the Next Button present in the pop-up window.</p>
  
  <p>I am not getting any error, it is just that clicking on the image fails.</p>
  
  <p><a href="https://i.stack.imgur.com/bltb7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bltb7.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/Z1bWE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z1bWE.png" alt="enter image description here"></a></p>
  
  <pre><code>appInstaller("E:\\Sikulimages\\tc.png");
          appInstallers("E:\\Sikulimages\\next.png");
  
  
  public static void appInstaller(String path) throws FindFailed{
          s=new Screen();
          img=new Pattern(path);      
          s.exists(path);
          s.wait(img,2000);
          s.doubleClick(img);
      }
  
      public static void appInstallers(String path) throws FindFailed, InterruptedException{
  
          s=new Screen();
          img=new Pattern(path);      
          s.click(img);               
      }
  </code></pre>