title: Appium checking if element is displayed
body: <p>I'm using Appium for Android </p>
  
  <p>the following works for clicking on the element</p>
  
  <pre><code>driver.findElement(By.xpath("//*[@resource-id='com.app.android:id/prelogin_signup']")).click();
  </code></pre>
  
  <p>But I am trying to check if an element is on the screen and I tried the following</p>
  
  <pre><code>if (driver.findElement(By.xpath("//*[@resource-id='com.app.android:id/prelogin_signup']")).isDisplayed()) {
      System.out.println("FOUND");
  } else {
      System.out.println("NOT FOUND!");
  }
  </code></pre>
  
  <p>but it returns an Exception saying</p>
  
  <pre><code>INFO: HTTP Status: '405' -&gt; incorrect JSON status mapping for 'unknown error' (500 expected)
  org.openqa.selenium.WebDriverException: Method is not implemented
  </code></pre>
  
  <p>How can I check to see if an element is on the screen?</p>