robotframework / robotframework/SeleniumLibrary

Add keywords for dealing with stale elements

Open
#1,767 2 comments 0 reactions 0 assignees View on GitHub

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 Stale
  • Get Element Staleness
  • Element 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.