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("newUiScrollable(newUiSelector().scrollable(true).instance(0)).scrollIntoView(newUiSelector().textContains(\"" + str +"\").instance(0))");

Leave a Reply

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