android / android/testing-samples

UIScrollable.getChildByDescription - reload data while executed scrollToBeginning in the method

Abierto
#347 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
9.3k
Forks
3.6k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

When UIScrollable.getChildByDescription starts working, first it does scrollToBeginning (which provokes updating of the list if the list is at the beginning), and only then it scrolls down and finds the desired element. How can I disable updating the list if the list is already at the beginning?

scrollToBeginning:
https://android.googlesource.com/platform/frameworks/testing/+/f612e6a05f47b28ae0f5715545658c08dd759dd7/uiautomator/library/src/com/android/uiautomator/core/UiScrollable.java#210

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

El issue apunta a UiScrollable.java en el código fuente enlazado del framework de Android y menciona getChildByDescription y scrollToBeginning. Lee primero scrollToBeginning y luego sigue su llamada desde getChildByDescription; la tarea está completada cuando una lista que ya está al principio no se vuelve a cargar antes de buscar el elemento objetivo.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
android, java
Área
mobile-dev, testing
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.