Skip to content

Commit b777ead

Browse files
committed
Fix warnings for UrlPattern and Locator
1 parent e142fe9 commit b777ead

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dotnet/src/webdriver/BiDi/Modules/BrowsingContext/Locator.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ namespace OpenQA.Selenium.BiDi.Modules.BrowsingContext;
1111
[JsonDerivedType(typeof(XPath), "xpath")]
1212
public abstract record Locator
1313
{
14+
public static InnerText InnerTextFFF(string value) => new InnerText(value);
15+
1416
public record Accessibility(Accessibility.AccessibilityValue Value) : Locator
1517
{
1618
public record AccessibilityValue
@@ -26,7 +28,7 @@ public record InnerText(string Value) : Locator
2628
{
2729
public bool? IgnoreCase { get; set; }
2830

29-
public MatchType? MatchType { get; set; }
31+
public new MatchType? MatchType { get; set; }
3032

3133
public long? MaxDepth { get; set; }
3234
}

dotnet/src/webdriver/BiDi/Modules/Network/UrlPattern.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ public record Pattern : UrlPattern
2626

2727
public record String(string Pattern) : UrlPattern
2828
{
29-
public string Pattern { get; } = Pattern;
29+
public new string Pattern { get; } = Pattern;
3030
}
3131
}

0 commit comments

Comments
 (0)