Skip to content

Commit bca2dc8

Browse files
committed
fix typo
1 parent e8c53af commit bca2dc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dotnet/src/webdriver/WebElement.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public virtual string TagName
7979

8080
Response commandResponse = this.Execute(DriverCommand.GetElementTagName, parameters);
8181

82-
if (commandResponse.Value is not Dictionary<string, object?> rawSize)
82+
if (commandResponse.Value is null)
8383
{
8484
throw new WebDriverException($"GetElementTagName command was successful, but response was not an object: {commandResponse.Value}");
8585
}
@@ -101,7 +101,7 @@ public virtual string Text
101101

102102
Response commandResponse = this.Execute(DriverCommand.GetElementText, parameters);
103103

104-
if (commandResponse.Value is not Dictionary<string, object?> rawSize)
104+
if (commandResponse.Value is null)
105105
{
106106
throw new WebDriverException($"GetElementText command was successful, but response was not an object: {commandResponse.Value}");
107107
}

0 commit comments

Comments
 (0)