Skip to content

Commit

Permalink
Mark IAlert.Text as nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
RenderMichael committed Dec 11, 2024
1 parent d7a2f15 commit f03f0f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dotnet/src/webdriver/Alert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ public Alert(WebDriver driver)
/// <summary>
/// Gets the text of the alert.
/// </summary>
public string Text
public string? Text
{
get
{
Response commandResponse = this.driver.InternalExecute(DriverCommand.GetAlertText, null);
return (string)commandResponse.Value!;
return (string)commandResponse.Value;
}
}

Expand Down
2 changes: 1 addition & 1 deletion dotnet/src/webdriver/IAlert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public interface IAlert
/// <summary>
/// Gets the text of the alert.
/// </summary>
string Text { get; }
string? Text { get; }

/// <summary>
/// Dismisses the alert.
Expand Down

0 comments on commit f03f0f9

Please sign in to comment.