Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Support ability to return attributes from elementResponseAttributes

Abierto
#698 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
ruby
Área
mobile-dev

Línea de trabajo

Comienza con Appium::Core::Base::Bridge, especialmente con find_element_by y find_elements_by, y luego inspecciona el acceso existente a los atributos de Appium::Core::Element. Confirma cómo se gestionan las respuestas de elementos no compactas y cómo pueden distinguirse los valores devueltos como cached_attributes de los atributos actualizados. Se considera completado cuando los atributos especificados se conservan y son accesibles sin cambiar el comportamiento de actualización existente.

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

Descripción

This is a

  • Feature Request

Summary

I've already written a patch to implement this feature, but just wanted to check before formatting it into a PR that it would be accepted.

The short is that when setting elementResponseAttributes for android/iOS and disabling compact responses with the capability shouldUseCompactResponses: false Calls to appium start returning the attributes specified, instead of just the element id which is great. The issue is that the appium bridge: Appium::Core::Base::Bridge which inherits from Selenium::WebDriver::Remote::Bridge doesn't actually do anything with these attributes, it only reads the element id. The methods find_element_by and find_elements_by need to be modified so that we can have our attributes returned and Appium::Core::Element needs to hold onto these attributes`

Currently when querying any attribute for an element, it always performs a HTTP request, so I think it needs to be very clear that when accessing these returned attributes, they aren't refreshed and can be stale. I used the method cached_attributes to represent the attributes returned when fetching the element, but very open to using different naming, it does feel important to differentiate between the existing behaviour of always fetching attributes vs when you want to fetch one of the values returned initially.

Lenguaje dominante
Ruby
Estrellas
40
Forks
22
Merge medio
2 h 32 min
PR fusionados (30 d)
17

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de appium/ruby_lib_core

Todos los issues de appium/ruby_lib_core

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.