title: not able to click the button in protractor with non-angular site
body: <p>I am trying to click the login button after sending the keys.</p>
  
  <p>I am able to fill email and password fields but for some reason it will not click the login button. </p>
  
  <p>here is the mark up</p>
  
  <pre><code>&lt;section id="loginBox"&gt;
                  &lt;h4 class="ban"&gt;Log in to your account&lt;/h4&gt;
                  &lt;p&gt;
                      &lt;label for="inputEmailHandle"&gt;Email / Handle:&lt;/label&gt;
                      &lt;input type="text" id="inputEmailHandle" name="inputEmailHandle" value=""&gt;
                  &lt;/p&gt;
                  &lt;p&gt;
                      &lt;label for="inputPassword"&gt;Password:&lt;/label&gt;
                      &lt;input id="inputPassword" type="password" name="inputPassword" autocomplete="off"&gt;
                  &lt;/p&gt;
  
                  &lt;p&gt;
                      &lt;label&gt;&amp;nbsp;&lt;/label&gt;
                      &lt;button type="submit"&gt;Log In&lt;/button&gt;
                      &lt;a href="/reset"&gt;forgot password?&lt;/a&gt;
                  &lt;/p&gt;
              &lt;/section&gt;
  </code></pre>
  
  <p>I have tried several things.</p>
  
  <p>here is what I have in my code</p>
  
  <pre><code>    it('should greet the named user', function () {
              // non angular site
              browser.ignoreSynchronization = true;
              browser.driver.get('http://example.com');
              browser.driver.findElement(By.id('post')).click();
              browser.driver.findElement(By.xpath("//input[@value='go']")).click();
              browser.driver.findElement(By.css('.pickbutton')).click();
              browser.driver.findElement(By.xpath("//input[@value='113']")).click();
              browser.driver.findElement(By.xpath("//input[@value='3']")).click();
  
  
              //click login button //this works sometime but fails a lot..non-consistent
            browser.driver.findElement(By.id('loginBox')).findElements(By.tagName('p')).then(function (el) {
      el[2].click();
  
      });
    });
  </code></pre>
  
  <p>I have also tried different other things like below without any success.</p>
  
  <pre><code>1-     browser.driver.findElement(By.xpath("//input[@type='button']")).click();
  2-     browser.driver.findElement(By.id('loginBox a')).then(function (el) {
          el.click();
          });
  </code></pre>
  
  <p>Here is the stack</p>
  
  <pre><code>Using the selenium server at http://localhost:4444/wd/hub
  A Jasmine spec timed out. Resetting the WebDriver Control Flow.
  The last active task was: 
  WebElement.click()
      at [object Object].webdriver.WebDriver.schedule (/Library/WebServer/Documents/youman/test/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:302:15)
      at [object Object].webdriver.WebElement.schedule_ (/Library/WebServer/Documents/youman/test/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:1665:23)
      at [object Object].webdriver.WebElement.click (/Library/WebServer/Documents/youman/test/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:1770:15)
      at /Library/WebServer/Documents/youman/test/spec/testlist.js:64:27
      at /Library/WebServer/Documents/youman/test/node_modules/protractor/node_modules/selenium-webdriver/lib/goog/base.js:1582:15
      at [object Object].webdriver.promise.ControlFlow.runInNewFrame_ (/Library/WebServer/Documents/youman/test/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1640:20)
      at notify (/Library/WebServer/Documents/youman/test/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:444:12)
      at notifyAll (/Library/WebServer/Documents/youman/test/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:422:7)
      at resolve (/Library/WebServer/Documents/youman/test/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:400:7)
  F
  
  Failures:
  
    1) Craigslist automation should greet the named user
     Message:
       timeout: timed out after 10000 msec waiting for spec to complete
     Stacktrace:
       undefined
  
  Finished in 10.855 seconds
  1 test, 2 assertions, 1 failure
  </code></pre>
  
  <p>Any help will be appreciated</p>