Select One Option From Many Options In Drop Down List In Eclipse Using Java When Run Code For The Android Device
I want to select the one option from many options in dropdown menu in eclipse using java and run code for the android device. code public class Selendroid { private static A
Solution 1:
driver.findElement(By.xpath("//android.widget.TextView[@text='Hindi']")).click();
driver.findElement(By.xpath("//class[@text='specific text at that where you want to click ']")).click(); This is solution for the above query .its really work because i find this solution myself after alot R&D in two days.
Solution 2:
After clicking on spinner you can use driver.scrollToExact to navigate to particular field.K
driver.findElement(By.id("com.testingqw.laborfind:id/tv_default_spinner"));
driver.scrollToExact("English");
driver.findElement(By.name("English")).click();
Post a Comment for "Select One Option From Many Options In Drop Down List In Eclipse Using Java When Run Code For The Android Device"