0

I'm automating the android native app. I have a set of cards and each card has a set of information. To access the card, I'm using android_uiautomator to scroll, it is able to find the element by text but it is not moving the card to the centre screen (where I can access all the information), but sometimes it stops by text where the rest of the card is under the view. I have tried different ways but have not been able to figure this out.

I have used below code for scrolling

browser.driver.find_element_by_android_uiautomator(
            'new UiScrollable(new UiSelector().scrollable(true).instance(0)).setSwipeDeadZonePercentage(0.25).scrollIntoView(new UiSelector().text("' + LocatorText + '"));')
        

I'm using LocatorText, cards will change their order every time. Any help is highly appreciated

ArunBharath
  • 143
  • 2
  • 17

0 Answers0