File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
dotnet/src/webdriver/BiDi/Modules/BrowsingContext Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ namespace OpenQA.Selenium.BiDi.Modules.BrowsingContext;
2424[ JsonPolymorphic ( TypeDiscriminatorPropertyName = "type" ) ]
2525[ JsonDerivedType ( typeof ( AccessibilityLocator ) , "accessibility" ) ]
2626[ JsonDerivedType ( typeof ( CssLocator ) , "css" ) ]
27+ [ JsonDerivedType ( typeof ( ContextLocator ) , "context" ) ]
2728[ JsonDerivedType ( typeof ( InnerTextLocator ) , "innerText" ) ]
2829[ JsonDerivedType ( typeof ( XPathLocator ) , "xpath" ) ]
2930public abstract record Locator ;
@@ -39,6 +40,11 @@ public record AccessibilityLocatorValue
3940
4041public record CssLocator ( string Value ) : Locator ;
4142
43+ public record ContextLocator ( ContextLocator . ContextLocatorValue Value ) : Locator
44+ {
45+ public record ContextLocatorValue ( BrowsingContext Context ) ;
46+ }
47+
4248public record InnerTextLocator ( string Value ) : Locator
4349{
4450 public bool ? IgnoreCase { get ; set ; }
You can’t perform that action at this time.
0 commit comments