title: Simple protractor test for isElementPresent failing with unsupported locator strategy
body: <p>My test:</p>
  
  <pre><code>it('should allow login', function() {
    browser.get('index.html');
  
    $('#username').sendKeys('administrator');
    $('#password').sendKeys('password');
    $('#login').click();
  
    var logout = $('#logout');
    expect($p.isElementPresent(logout)).to.eventually.be.true;
  }); 
  </code></pre>
  
  <p>But this errors out with:</p>
  
  <pre><code>Error: Unsupported locator strategy: click
    at Error (&lt;anonymous&gt;)
    at Function.webdriver.Locator.createFromObj (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/locators.js:97:9)
    at Function.webdriver.Locator.checkLocator (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/locators.js:111:33)
    at webdriver.WebDriver.findElements (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:805:31)
    at webdriver.WebDriver.isElementPresent (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/webdriver.js:787:29)
    at Protractor.isElementPresent (/usr/local/lib/node_modules/protractor/lib/protractor.js:476:22)
    at /Users/pschuegr/wt/client/e2e/login_test.js:26:15
  </code></pre>
  
  <p>Strangely, it points to the isElementPresent line, rather than the line with the click.  I'm pretty new to webdriver, so apologies if I missed something obvious.  I'm running using the mocha framework (which means the canary version of protractor), fwiw.</p>
  
  <p>Any ideas appreciated.</p>