robotframework / robotframework/SeleniumLibrary

In Robot Selenium Library to find any web element it generates post call with elements why not element to find single web element.

Open
#1,846 1 comment 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

Hi,
I am using Selenium 4.8.3 and Ride for automation scripting. My script include simple action Click Element with xpath as //*[@id='username']. In debug logs observed that it always generates post call DEBUG : http://localhost:55411/ "POST /session/53572f229897674fc9faae17fafdc243/elements

Tried using locator strategies like id:username / default:username but every time it generates similar post call with elements. Why SeleniumLibraray not generating post call with element rather that elements like : http://localhost:55411/ "POST /session/53572f229897674fc9faae17fafdc243/element

We are trying to use Healenium (Test Automation Framework which will Heal the Broken locator at runtime and continue test execution.). This enables healing if Selenium call is element, if call is elements Automatic Healing is not enabled.

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 reproducing the Click Element action with the XPath //*[@id='username'] and inspect the debug request shown in the issue. Compare the generated elements request with the expected element request and determine whether the behavior is controlled by the locator strategy. Done means the single-element action supports the requested Healenium integration without breaking existing locator behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.