[🐛 Bug]: "Near" relative locator doesn't work for the dotNet #13610
Labels
C-dotnet
help wanted
Issues looking for contributions
I-defect
support
Issue or PR related to support classes
What happened?
I came across the fact that the Near relative locator for dotNet does not work.
I tried to debag, and found that I did not have the element. I get null at this point - js.ExecuteScript(wrappedAtom, parameters);
https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/src/webdriver/RelativeBy.cs#L109
Message:
System.NullReferenceException : Object reference not set to an instance of an object.
There are no tests for near relative locators in the dotNet project - https://github.com/SeleniumHQ/selenium/blob/b6b209602d544b769a0f4635022cf55a7b8f81b4/dotnet/test/common/RelativeLocatorTest.cs
At the same time, test coverage looks better for Java - https://github.com/SeleniumHQ/selenium/blob/trunk/java/test/org/openqa/selenium/support/locators/RelativeLocatorTest.java
How can we reproduce the issue?
Relevant log output
Operating System
Windows 10
Selenium version
.Net
What are the browser(s) and version(s) where you see this issue?
Chrome
What are the browser driver(s) and version(s) where you see this issue?
chromedriverVersion, 121.0.6167.184
Are you using Selenium Grid?
No
The text was updated successfully, but these errors were encountered: