robotframework / robotframework/SeleniumLibrary

Add parameter to make Wait Until Page Contains case insensitive

Open
#1,517 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement priority: medium
Dominant language
Python
Stars
1.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

It would be great to be able to turn off case sensitivity for keywords like Element Text Should Be, Wait Until Element Contains, Wait Until Element Does Not Contain, Wait Until Page Contains and Wait Until Page Does Not Contain

This feature was already implemented for Element Should Contain and Element Should Not Contain in #849.

I spent lots of time trying to understand why Wait Until Page Contains fails just to find that it is a case sensitive and case on the screen was displayed differently, because of CSS style: text-transform: lowercase

I would vote to make these keywords case insensitive by default and case sensitive via parameter. I think it would make tests faster to write and less brittle.

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 locating the implementations and tests for Element Should Contain and Element Should Not Contain, then compare them with the five Wait Until and Element Text Should Be keywords named in the issue. Review issue #849 and the comment discussion for the intended parameter and default behavior. Done means the named keywords consistently support the agreed case-sensitivity behavior with test coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.