How can I test that an element does not exist on the page with Protractor?
<p>I am trying to test if an element is not present on a page.</p>

<p>I have tried using the following method, but I get an error each time:</p>

<p>Method:             </p>

<pre><code>expect(element(CastModule.PersonXpath).isDisplayed()).toEqual(false);
</code></pre>

<p><em>Error: Failed: Timed out waiting for Protractor to synchronize with the page after
seconds. Please see <a href="https://github.com/angular/protractor/blob/master/docs/f" rel="nofollow">https://github.com/angular/protractor/blob/master/docs/f</a> ...</em></p>

<p>What method do you recommend?</p>