We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f048ab8 commit b345522Copy full SHA for b345522
dotnet/src/webdriver/Remote/RemoteWebDriver.cs
@@ -568,7 +568,7 @@ public ReadOnlyCollection<IWebElement> FindElementsById(string id)
568
if (this.IsSpecificationCompliant)
569
{
570
string selector = EscapeCssSelector(id);
571
- if (selector == string.Empty)
+ if (string.IsNullOrEmpty(selector))
572
573
// Finding multiple elements with an empty ID will return
574
// an empty list. However, finding by a CSS selector of '#'
0 commit comments