robotframework / robotframework/SeleniumLibrary
Add keywords for dealing with stale elements
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 787
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing Python plugin and Selenium's expected_conditions.staleness_of, then compare them with SeleniumLibrary's current keyword patterns. Define the three proposed stale-element keywords and verify that they cover waiting, retrieving staleness, and positive or negative assertions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100