@@ -19,34 +19,34 @@ public DropdownMenuAssertionsV2(DropdownMenu dropdownMenu)
1919 }
2020
2121 public async Task ToBeEnabledAsync ( LocatorAssertionsToBeEnabledOptions ? options = default )
22- => await dropdownMenu . ButtonLocator . Expect ( ) . ToBeEnabledAsync ( options ) . ConfigureAwait ( false ) ;
22+ => await dropdownMenu . CaptionLocator . Expect ( ) . ToBeEnabledAsync ( options ) . ConfigureAwait ( false ) ;
2323
2424 public async Task ToBeDisabledAsync ( LocatorAssertionsToBeDisabledOptions ? options = default )
25- => await dropdownMenu . ButtonLocator . Expect ( ) . ToBeDisabledAsync ( options ) . ConfigureAwait ( false ) ;
25+ => await dropdownMenu . CaptionLocator . Expect ( ) . ToBeDisabledAsync ( options ) . ConfigureAwait ( false ) ;
2626
2727 public async Task ToHaveTextAsync ( string text , LocatorAssertionsToHaveTextOptions ? options = default )
28- => await dropdownMenu . ButtonLocator . Expect ( ) . ToHaveTextAsync ( text , options ) . ConfigureAwait ( false ) ;
28+ => await dropdownMenu . CaptionLocator . Expect ( ) . ToHaveTextAsync ( text , options ) . ConfigureAwait ( false ) ;
2929
3030 public async Task NotToHaveTextAsync ( string text , LocatorAssertionsToHaveTextOptions ? options = default )
31- => await dropdownMenu . ButtonLocator . Expect ( ) . Not . ToHaveTextAsync ( text , options ) . ConfigureAwait ( false ) ;
31+ => await dropdownMenu . CaptionLocator . Expect ( ) . Not . ToHaveTextAsync ( text , options ) . ConfigureAwait ( false ) ;
3232
3333 public async Task ToHaveTextAsync ( Regex regex , LocatorAssertionsToHaveTextOptions ? options = default )
34- => await dropdownMenu . ButtonLocator . Expect ( ) . ToHaveTextAsync ( regex , options ) . ConfigureAwait ( false ) ;
34+ => await dropdownMenu . CaptionLocator . Expect ( ) . ToHaveTextAsync ( regex , options ) . ConfigureAwait ( false ) ;
3535
3636 public async Task NotToHaveTextAsync ( Regex regex , LocatorAssertionsToHaveTextOptions ? options = default )
37- => await dropdownMenu . ButtonLocator . Expect ( ) . Not . ToHaveTextAsync ( regex , options ) . ConfigureAwait ( false ) ;
37+ => await dropdownMenu . CaptionLocator . Expect ( ) . Not . ToHaveTextAsync ( regex , options ) . ConfigureAwait ( false ) ;
3838
3939 public async Task ToContainTextAsync ( string text , LocatorAssertionsToContainTextOptions ? options = default )
40- => await dropdownMenu . ButtonLocator . Expect ( ) . ToContainTextAsync ( text , options ) . ConfigureAwait ( false ) ;
40+ => await dropdownMenu . CaptionLocator . Expect ( ) . ToContainTextAsync ( text , options ) . ConfigureAwait ( false ) ;
4141
4242 public async Task NotToContainTextAsync ( string text , LocatorAssertionsToContainTextOptions ? options = default )
43- => await dropdownMenu . ButtonLocator . Expect ( ) . Not . ToContainTextAsync ( text , options ) . ConfigureAwait ( false ) ;
43+ => await dropdownMenu . CaptionLocator . Expect ( ) . Not . ToContainTextAsync ( text , options ) . ConfigureAwait ( false ) ;
4444
4545 public async Task ToContainTextAsync ( Regex regex , LocatorAssertionsToContainTextOptions ? options = default )
46- => await dropdownMenu . ButtonLocator . Expect ( ) . ToContainTextAsync ( regex , options ) . ConfigureAwait ( false ) ;
46+ => await dropdownMenu . CaptionLocator . Expect ( ) . ToContainTextAsync ( regex , options ) . ConfigureAwait ( false ) ;
4747
4848 public async Task NotToContainTextAsync ( Regex regex , LocatorAssertionsToContainTextOptions ? options = default )
49- => await dropdownMenu . ButtonLocator . Expect ( ) . Not . ToContainTextAsync ( regex , options ) . ConfigureAwait ( false ) ;
49+ => await dropdownMenu . CaptionLocator . Expect ( ) . Not . ToContainTextAsync ( regex , options ) . ConfigureAwait ( false ) ;
5050
5151 public async Task ToContainItemsAsync ( string [ ] expectedItemsText , int timeoutInMilliseconds = 10000 )
5252 {
@@ -80,10 +80,4 @@ public async Task ToContainItemsAsync(string[] expectedItemsText, int timeoutInM
8080 throw new TimeoutException (
8181 $ "Не дождались наличия элементов [{ string . Join ( ", " , expectedItemsText ) } ] в списке DropdownMenu за { timeoutInMilliseconds } ms.") ;
8282 }
83-
84- public async Task ToBeFocusedAsync ( LocatorAssertionsToBeFocusedOptions ? options = default )
85- => await dropdownMenu . ButtonLocator . Expect ( ) . ToBeFocusedAsync ( options ) . ConfigureAwait ( false ) ;
86-
87- public async Task NotToBeFocusedAsync ( LocatorAssertionsToBeFocusedOptions ? options = default )
88- => await dropdownMenu . ButtonLocator . Expect ( ) . Not . ToBeFocusedAsync ( options ) . ConfigureAwait ( false ) ;
8983}
0 commit comments