Support ability to return attributes from elementResponseAttributes
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 55/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- ruby
- Bereich
- mobile-dev
Rechercherichtung
Beginne mit Appium::Core::Base::Bridge, insbesondere mit find_element_by und find_elements_by, und untersuche anschließend den bestehenden Attributzugriff von Appium::Core::Element. Bestätige, wie nicht-kompakte Elementantworten behandelt werden und wie zurückgegebene Werte als cached_attributes von aktualisierten Attributen unterschieden werden können. Als erledigt gilt die Aufgabe, wenn die angegebenen Attribute erhalten bleiben und zugänglich sind, ohne das bestehende Aktualisierungs Verhalten zu ändern.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Ruby
- Sterne
- 40
- Forks
- 23
- Ø Merge
- 11 Std. 19 Min.
- Gemergte PRs (30 T.)
- 7
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus appium/ruby_lib_core
-
Remove implicit capabilities handling in the coreEvtl. wieder frei @KazuCocoa hat das vor 1470 Tagen übernommen, und es ist kein Pull Request offen. Offen
appium/ruby_lib_core#415 · 2 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
appium/ruby_lib_core#333 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in appium/ruby_lib_core
Ähnliche Issues
-
Unconfirmed users who reset their password are stuck on sign in with no way to send confirmationOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 79/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
L: github:actions L: javascript
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
dependabot/dependabot-core#16615 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Kanton Column not HiddenOffenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 61/100
hitobito/hitobito_pfadi_de#164 ·
Maintainer antworten meist innerhalb von 5 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 7 Tagen