You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The By type has special handling in many cases for custom methods. We use it to make sure FindElements(By.Id("")) returns an empty list instead of throwing. Users can also override By.FindElementMethod and By.FindElementsMethod for custom implementations.
This has been applied to WebDriver and WebElement, but not to ShadowRoot. We can apply it there as well so By behaves consistently.
@RenderMichael, thank you for creating this issue. We will troubleshoot it as soon as we can.
Info for maintainers
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template label.
If the issue is a question, add the I-question label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-* label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer label.
What happened?
The
By
type has special handling in many cases for custom methods. We use it to make sureFindElements(By.Id(""))
returns an empty list instead of throwing. Users can also overrideBy.FindElementMethod
andBy.FindElementsMethod
for custom implementations.This has been applied to
WebDriver
andWebElement
, but not toShadowRoot
. We can apply it there as well soBy
behaves consistently.How can we reproduce the issue?
Relevant log output
Operating System
N/A
Selenium version
4.29
What are the browser(s) and version(s) where you see this issue?
N/A
What are the browser driver(s) and version(s) where you see this issue?
N/A
Are you using Selenium Grid?
No response
The text was updated successfully, but these errors were encountered: