title: Button not pressed Selenium + Java
body: <p>I have a site I want to automate. There is a popup (what before popping up is hidden) with a cancel and ok button. There seems to be no way I can automatically press the ok button (cancel also not).</p>
  
  <p>XPath: </p>
  
  <pre><code>//*[@id=\"lightbox\"]/div[2]/div/div[1]/div[2]/button[2]
  </code></pre>
  
  <p>not working.</p>
  
  <p><a href="https://i.stack.imgur.com/qUJfS.jpg" rel="nofollow noreferrer">View code here</a></p>