title: Using findElementById("elementID") with appium for native android app. Error: "Locator strategy 'css selector" is not supported"
body: <pre><code>I am using Appium installed over npm (version 1.13.0), Selenium (3.8.1), Appium client for java (4.1.2).
  </code></pre>
  
  <p>Using UIAutomationViewer I am able to find IDs of elements I want to click. But when I run the code, in place od IDs, selenium is trying to find them with css.</p>
  
  <pre><code>DesiredCapabilities capabilities = new DesiredCapabilities();
  capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, 
  "PixelTest");
  capabilities.setCapability("platformName","Android");
  capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, 
  "UiAutomator1");
  capabilities.setCapability(MobileCapabilityType.NO_RESET, true);
  capabilities.setCapability("appPackage", "com.android.calculator2");
  capabilities.setCapability("appActivity", ".Calculator");
  
  driver = new AndroidDriver&lt;AndroidElement&gt;(new URL(url), capabilities);
  driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
  
  driver.findElementById("digit_9").click();
  driver.findElementById("digit_6").click();
  
  driver.findElementById("pad_operator").click();
  
  driver.findElementById("digit_1").click();
  driver.findElementById("digit_0").click();  
  
  driver.findElementById("eq").click();
  </code></pre>
  
  <p>Error I am having: "org.openqa.selenium.InvalidSelectorException: Locator Strategy 'css selector' is not supported for this session". Why this happens?</p>