title: Cannot use XPath in Appium
body: <p>I am automating a UWP application (Windows 10) through Appium + Winapp driver.</p>
  
  <p>I am using Appium inspector to spy the objects in the windows 10 app. There is no name available for the button and therefore trying to use the Xpath</p>
  
  <pre><code>/Window/Window[2]/Button[2]
  </code></pre>
  
  <p>I tried clicking the tap button in the Appium inspector and it is clicking on the button name.</p>
  
  <p>If I use the XPath in my selenium code, like the below, it is not working:</p>
  
  <pre><code>driver.findElementByXPath("//Window[2]/Button[2]").click();
  </code></pre>
  
  <p>Can you please let me know why the script is not able to click the <code>Button</code> at the same time the Appium inspector can click it.</p>
  
  <p>My environment is:</p>
  
  <ul>
  <li>Appium version - 1.9.1</li>
  <li>WinApp Version - 1.1</li>
  <li>Java client - 6.1</li>
  <li>OS - Windows 10</li>
  </ul>