robotframework / robotframework/SeleniumLibrary
Strip and collapse spaces from `Element Text Should Be` and `Element Text Should Not Be`
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 787
- PR merge metrics
- No merged PRs in 30d
Description
Sometimes element has spaces that can be accepted for the test case. Specially leading and trailing spaces can occur in element.
These functionalities has added to BuiltIn Should Be Equal keywords in RF 4.0 and RF 4.1 and would be nice to have in SeleniumLibrary too.
PR: https://github.com/robotframework/SeleniumLibrary/pull/1749
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 comparing the Element Text Should Be and Element Text Should Not Be keywords with the BuiltIn Should Be Equal behavior described in the issue. Use the linked pull request as the implementation context and verify that leading, trailing, and repeated spaces are handled as requested.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100