title: php web-driver : how to to click a button on a popup page
body: <p>I wana click on a submit button on a popup page using php web-driver. When I click on a button, its open a boostrap confirmation popup, Now I tying to click on button on this popup.Like this . </p>
  
  <p><img src="https://i.stack.imgur.com/L8dE0.jpg" alt="page_popup"></p>
  
  <p>When I use xpath for locate this button. its getting below error. </p>
  
  <pre><code>ElementNotVisibleException: Element is not currently visible and so may not be interacted with
  Build info: version: '2.44.0', revision: '76d78cf', time: '2014-10-23 20:02:37'
  System info: host: 'DSS-405', ip: '172.16.12.130', os.name: 'Windows 8', os.arch: 'amd64', os.version: '6.2', java.versi
  on: '1.7.0_07'
  </code></pre>
  
  <p>I'm new in web-driver scripting. Please anybody help me. </p>
  
  <p><strong>Update Code snapshot</strong>
          
  
  <pre><code>    class LoginTest extends PHPUnit_Framework_TestCase {
  
      /**
       * @var \RemoteWebDriver
       */
      protected $webDriver;
  
      public function setUp()
      {
          $capabilities = array(\WebDriverCapabilityType::BROWSER_NAME =&gt; 'firefox');
          $this-&gt;webDriver = RemoteWebDriver::create('http://localhost:4444/wd/hub', $capabilities);
      }
  
      protected $url = 'http://mywebsite.com/user.html';
  
      public function testLogin() {
  
          $this-&gt;webDriver-&gt;get($this-&gt;url);
  
          $confirmBtn  = $this-&gt;webDriver-&gt;findElement(WebDriverBy::xpath('//*[@id="userCommand"]/div[2]/div[2]/button')) ;
  
          $confirmBtn-&gt;click();
  
      }
  ?&gt;
  </code></pre>