title: How do i select value from dropdown of a hybrid app using appium?
body: <p>I am relatively new to appium, and is actively involved in a poc. The requirement is to select a value from the drop down, however i am able to click the spinner element but anything below that is not getting recognized my uiautomator. as a result i am not able to select any values from the spinner element.
  I am attaching the code block of the script and also the element tree snapshot.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> //trying to click the dropdown list
     try{
      WebElement parentElement1 = driver.findElement(By.id("retProdOp0"));
      WebElement childElement1 = parentElement1.findElement(By
       .xpath("//android.view.View[@index='1']"));
     childElement1.click();
     driver.label("dropdown list 2nd element clicked");
     }catch(Exception e){
     driver.label("Failed to click dropdown list on prodexchg screen");
     System.out.println(e.getMessage());
     }
     </code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://i.stack.imgur.com/MYaCb.jpg" rel="nofollow noreferrer">Snapshot1</a></p>
  
  <p><a href="https://i.stack.imgur.com/qvByv.jpg" rel="nofollow noreferrer">Snapshot2</a></p>
  
  <p>I want to select the values from the drop down of the spinner in Snapshot2. However i am not able to locate them in uiautomator. Looking for some help. Thanks in advance.</p>