Hi I want to know how to scroll in appium using python
I have done it in Java before and it worked really well.
driver.scrollTo("Destination");
However I can't seem to do the same in python. I am fairly new to python and I have try doing multiple ways to scroll
One way I tried was
el1 = self.driver.find_element_by_name('Starting')
el2 = self.driver.find_element_by_name('Ending')
self.driver.scroll(el1, el2)
second way I tried was
self.driver.find_element_by_android_uiautomator('new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().text("DesinationText").instance(0));').
second way scroll once but didn't scroll all the way down so it threw NoSuchElementException. Also, can someone explain to me what instances are in UiSelector? I read the description but I didn't quite understand
Instance: Set the search criteria to match the widget by its instance number.