MarketSquare / MarketSquare/robotframework-browser

add Is Element keyword

Open
#4,607 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority: medium
Dominant language
Python
Stars
655
Forks
147
Avg merge
5h 27m
Merged PRs (30d)
59

Description

**Is your feature request related to a problem? Please describe.**
Quite often there is a need to add conditional logic to a test based on UI state. Currently I need to do some ugly Run Keyword And Return Status or TRY/EXCEPT stuff or use Get Element Count as workaround.

**Describe the solution you'd like**
new keyword Is Element that returns boolean value whether element defined by selector is found or not.

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 existing Get Element Count keyword and the related keyword implementation and tests. Compare how it handles a selector and define the new Is Element keyword around the requested boolean result. Done means a selector reports whether an element is found, with coverage for the relevant UI states.

Written by the indexing model from the issue text.

Assessment

Tech stack
playwright, python
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.