title: How to use Appium locators when using Protractor+Appium for hybrid application
body: <p>I'm using Protractor and <code>Appium</code> in order to test a hybrid application.i need to click on an native element.i am inspecting it with <code>Appium</code> inspector as i am not able to inspect it with chrome. i tried with different locators also like id and <code>xpath</code>.</p>
  
  <p><strong>This is the code:</strong></p>
  
  <pre><code>var thanks = browser.driver.findElement(By.id('android:id/button1'));
  thanks.click();
  </code></pre>
  
  <p><strong>or</strong></p>
  
  <pre><code>var thanks = browser.driver.findElement(By.id(' //android.widget.FrameLayout[1]/android.widget.FrameLayout[1]/android.widget.LinearLayout[1]/android.widget.LinearLayout[3]/android.widget.Button[1]'));
  thanks.click();
  </code></pre>
  
  <p><strong>Error Message:</strong></p>
  
  <pre><code>Failed: no such element: Unable to locate element:
  </code></pre>
  
  <p>I'm new in the protractor. I have found many question here but they all are unanswered. Please let me know if there is anything needed here like switching the context or something which i am missing here.</p>