title: Which selector is the best for Appium to test different versions of devices?
body: <p>There are different ways to find element on a page (<strong>name, id, xpath, content-description, class name</strong>).</p>
  
  <p>For devices with API > 18, <strong>id</strong> works well but if it is API &lt; 18 you need to add <strong>content-description</strong> to your element. Finding element by <strong>name</strong> also looks good but not in my case.</p>
  
  <p>I have never used <strong>xPath</strong> before and for now it looks like the best option. </p>
  
  <p>I am writing an automation app that uses Appium and allows testers testing the application on multiple Android devices at the same time. Therefore I want to have a method that will work best with everything rather than writing different test classes/methods for each version.</p>
  
  <p>Thanks</p>