title: Finding an element by id in Appium
body: <p>I have got id associated with the element, but when tried locating this using findElement(By.id()) it doesn't work.</p>
  
  <p>Also, I had gone through few blogs with the same question as <a href="https://stackoverflow.com/questions/22142219/can-we-find-element-by-id-in-appium">given here</a>, but I saw the resource-id in there was prefixed with packagename and <code>:id</code>. In my case, these aren't associated. Screenshot for the element details is below : 
  <a href="https://i.stack.imgur.com/QAdGI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QAdGI.png" alt="enter image description here"></a></p>
  
  <p>I have used the below code to locate the element by id.</p>
  
  <pre><code> - driver.findElement(By.id("loginHome"));
   - driver.findElement(By.id("com.packagename:id/loginHome"));
   - driver.findElement(By.id("android:id/loginHome"));
   - driver.findElement(By.xpath(//*[@id='loginHome']));
  </code></pre>
  
  <p>But none of the above code snippets worked. Can someone please help me get through with this. Thanks in Advance.</p>