Skip to content

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

Description

@ap0087105

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.

Activity

  1. emanlove commented on Jul 20, 2023

    @emanlove
    Member

    That is by design so that the library can do some post filtering on the elements it is looking for and allowing for some flexibility in the locator strategies used through the library.

    At a very high level thinking of design and program management I could see a possible pathway for having it call both. But in terms of priorities and resources my immediate reaction is that this would be fairly low on the milestone list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions