robotframework / robotframework/SeleniumLibrary

Strip and collapse spaces from `Element Text Should Be` and `Element Text Should Not Be`

Open
#1,750 0 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

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.