robotframework / robotframework/SeleniumLibrary
Add keywords for dealing with stale elements
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 1.5k
- Forks
- 787
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
For my use case it would be nice to have some keywords to be able to deal with elements that get removed from the DOM. Something along the lines of
Wait Until Element Is StaleGet Element StalenessElement Should (Not) Be Stale
I wrote a rudimentary Python plugin at work using Selenium's staleness_of condition. I got the OK to use the plugin as a base and spend some time so I'd be willing to try and provide a PR as well if this feature makes sense and would be a good fit for the library.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der Überprüfung des bestehenden Python-Plugins und von Selen现场ums expected_conditions.staleness_of und vergleiche sie anschließend mit den aktuellen Keyword-Mustern von SeleniumLibrary. Definiere die drei vorgeschlagenen Keywords für veraltete Elemente und verifiziere, dass sie das Warten, das Abrufen des Veraltetenstatus sowie positive oder negative Assertions abdecken.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- testing
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100