How to scroll down to a particular element having text ? – pCloudy – Question and Answers
Home >> Appium Tricks and Tricks >> How to scroll down to a particular ...

How to scroll down to a particular element having text ?


Code Snippet:

//str => Which text contains by the element 
 driver.findElementsByAndroidUIAutomator("new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().textContains(\"" + str +"\").instance(0))");

Leave a Reply

Your email address will not be published. Required fields are marked *