File tree 1 file changed +17
-19
lines changed
dotnet/src/webdriver/BiDi/Modules/BrowsingContext
1 file changed +17
-19
lines changed Original file line number Diff line number Diff line change @@ -29,35 +29,33 @@ namespace OpenQA.Selenium.BiDi.Modules.BrowsingContext;
29
29
[ JsonDerivedType ( typeof ( XPathLocator ) , "xpath" ) ]
30
30
public abstract record Locator ;
31
31
32
- public record AccessibilityLocator ( AccessibilityLocator . AccessibilityLocatorValue Value ) : Locator
33
- {
34
- public record AccessibilityLocatorValue
35
- {
36
- public string ? Name { get ; set ; }
37
- public string ? Role { get ; set ; }
38
- }
39
- }
32
+ public record AccessibilityLocator ( AccessibilityValue Value ) : Locator ;
40
33
41
34
public record CssLocator ( string Value ) : Locator ;
42
35
43
- public record ContextLocator ( ContextLocator . ContextLocatorValue Value ) : Locator
44
- {
45
- public record ContextLocatorValue ( BrowsingContext Context ) ;
46
- }
36
+ public record ContextLocator ( ContextValue Value ) : Locator ;
47
37
48
38
public record InnerTextLocator ( string Value ) : Locator
49
39
{
50
40
public bool ? IgnoreCase { get ; set ; }
51
41
52
- public Match ? MatchType { get ; set ; }
42
+ public MatchType ? MatchType { get ; set ; }
53
43
54
44
public long ? MaxDepth { get ; set ; }
55
-
56
- public enum Match
57
- {
58
- Full ,
59
- Partial
60
- }
61
45
}
62
46
63
47
public record XPathLocator ( string Value ) : Locator ;
48
+
49
+ public record AccessibilityValue
50
+ {
51
+ public string ? Name { get ; set ; }
52
+ public string ? Role { get ; set ; }
53
+ }
54
+
55
+ public record ContextValue ( BrowsingContext Context ) ;
56
+
57
+ public enum MatchType
58
+ {
59
+ Full ,
60
+ Partial
61
+ }
You can’t perform that action at this time.
0 commit comments