SeleniumLibrary icon indicating copy to clipboard operation
SeleniumLibrary copied to clipboard

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

Open ap0087105 opened this issue 2 years ago • 1 comments

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.

ap0087105 avatar Jul 20 '23 13:07 ap0087105

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.

emanlove avatar Jul 20 '23 15:07 emanlove