1

I'm new to automate testing and currently use appium . I couldn't find a way to select text(Example 20,30,100) in the wheelview using findelementbyandroiduiautomator. Is there any other solution to do this?

Edit: Here is the picture

What I am trying to do is select the 25 Baht 25.0 from the wheelview by use the findelementbyandroiduiautomator.

as

driver.findElementByAndroidUIAutomator("new UiSelector().className(\"android.view.View\").getinstance(1)").getText(); 

Doesn't work

Machavity
  • 30,841
  • 27
  • 92
  • 100
Itisak
  • 11
  • 4
  • Please give more details, maybe a screenshot of what you're trying to do. You could use the uiautomatorviewer form the Android SDK to help you out with the layout. – Gabriel Porumb Apr 24 '15 at 07:58
  • I haven't used appium at all. I used the uiautomator framework to create UI tests that find objects using selectors. If you know the text to look for, you could try to use UiSelector().text("25 Baht 25.0") or something similar. – Gabriel Porumb Apr 27 '15 at 10:08

1 Answers1

0

Hope you clicked in element you required & showing its id,then Just

driver.findElement(By.id("country"));
Machavity
  • 30,841
  • 27
  • 92
  • 100
Shreekant N
  • 858
  • 1
  • 13
  • 28