title: Protractor tests fail from time to time
body: <p>I write an end to end tests using protractor for my application. I'm sure that tests should be correct. But I see errors: <code>ElementNotVisibleError: element not visible</code>, <code>Expected false to be true</code>, <code>No element found using locator</code> from time to time.</p>
  
  <p>Here is test code:</p>
  
  <pre><code>describe "try test message center and it", -&gt;
    beforeEach -&gt;
      ptor = protractor.getInstance()
      ptor.ignoreSynchronization = true
  
    it "should login", -&gt;
      browser.driver.get homeURL
      browser.manage().window().maximize()
      element(`by`.xpath('//select/option[2]')).click()
      element(`by`.css('.buttons input')).click()
  
    it "should url is as expected", -&gt;
      ptor = protractor.getInstance()
      expectedUrl = homeURL + '#/messages' 
      expect(ptor.getCurrentUrl()).toBe(expectedUrl)
  
    it "should create and send new message", -&gt;
      ptor = protractor.getInstance()
      ptor.sleep 1000
      element(`by`.css('button.btn-primary')).click()
      element(`by`.model('uiData.createRecipient')).sendKeys 'James'
      ptor.sleep 1000
      element.all(`by`.repeater('match in matches')).get(1).click()
      element(`by`.model('uiData.createSubject')).sendKeys 'subject 2'
      element(`by`.model('uiData.createText')).sendKeys 'body of message'
      ptor.sleep 1000
      element(`by`.css('div.form-group a.btn-primary')).click()
      ptor.sleep 1000
      expect(element(`by`.css('.popupBox')).isPresent()).toBe(true)
  
    it "should check new message", -&gt;
      ptor = protractor.getInstance()
      ptor.get('#/messages?folder=1')
      ptor.driver.navigate().refresh()
      ptor.sleep 5000
      element(`by`.model('uiData.to')).sendKeys 'k'
      ptor.sleep 3000
      element.all(`by`.cssContainingText('span.grid-col-to', 'James')).last().click()
      ptor.sleep 1000
      expect(element(`by`.xpath('//*[text()[contains(.,"body of message")]]')).isPresent()).toBe(true)
      element(`by`.xpath('//*[text()[contains(.,"Own it!")]]')).click()
      ptor.sleep 1000
      expect(element(`by`.cssContainingText('span', 'Owned by')).isPresent()).toBe(true)
      element(`by`.xpath('//*[text()[contains(.,"Disown it")]]')).click()
      ptor.sleep 1000
      expect(element(`by`.cssContainingText('span', 'Disowned by')).isPresent()).toBe(true)
  </code></pre>
  
  <p>Protractor v1.0.0,
  Grunt protractor runner v1.0.1
  Node v0.10.28,
  NPM v1.4.9,
  Chrome driver v2.10,
  Selenium Server v2.42.2.
  Tests running by Jenkins under Windows Server 2008 R2</p>
  
  <p>What could it be? Thanks.</p>