88
99namespace Behavioral . Automation . Bindings
1010{
11- /// <summary>
12- /// Bindings for labels or other text elements testing
11+ /// <summary>
12+ /// Bindings for labels or other text elements testing
1313 /// </summary>
1414 [ Binding ]
1515 public sealed class LabelBinding
@@ -23,18 +23,18 @@ public LabelBinding([NotNull] RunnerService runnerService, [NotNull] ScenarioCon
2323 _scenarioContext = scenarioContext ;
2424 }
2525
26- /// <summary>
27- /// Check that element's text is equal to the expected one
28- /// </summary>
29- /// <param name="element">Tested web element wrapper</param>
30- /// <param name="behavior">Assertion behavior (instant or continuous)</param>
26+ /// <summary>
27+ /// Check that element's text is equal to the expected one
28+ /// </summary>
29+ /// <param name="element">Tested web element wrapper</param>
30+ /// <param name="behavior">Assertion behavior (instant or continuous)</param>
3131 /// <param name="value">Expected value</param>
3232 /// <example>Then "Test" element text should be "expected text"</example>
3333 [ Given ( "the (.*?) text (is|is not|become|become not) \" (.*)\" " ) ]
3434 [ Then ( "the (.*?) text should (be|be not|become|become not) \" (.*)\" " ) ]
3535 public void CheckSelectedText (
36- [ NotNull ] IWebElementWrapper element ,
37- [ NotNull ] AssertionBehavior behavior ,
36+ [ NotNull ] IWebElementWrapper element ,
37+ [ NotNull ] AssertionBehavior behavior ,
3838 [ NotNull ] string value )
3939 {
4040 Assert . ShouldBecome ( ( ) => StringExtensions . GetElementTextOrValue ( element ) , value , behavior ,
@@ -68,7 +68,7 @@ public void CheckSelectedTextContain(
6868 /// <example>Then the "Test" element should have tooltip with text "expected string"</example>
6969 [ Then ( "the (.*?) should (have|not have) tooltip with text \" (.*)\" " ) ]
7070 public void CheckElementTooltip (
71- [ NotNull ] IWebElementWrapper element ,
71+ [ NotNull ] ITooltipElementWrapper element ,
7272 [ NotNull ] AssertionBehavior behavior ,
7373 [ NotNull ] string value )
7474 {
@@ -88,8 +88,8 @@ public void CheckElementIsEmpty([NotNull] IWebElementWrapper element, AssertionB
8888 {
8989 Assert . ShouldBecome ( ( ) => StringExtensions . GetElementTextOrValue ( element ) , string . Empty , behavior ,
9090 $ "{ element . Caption } text is \" { StringExtensions . GetElementTextOrValue ( element ) } \" ") ;
91- }
92-
91+ }
92+
9393 /// <summary>
9494 /// Check that multiple elements' texts are empty
9595 /// </summary>
0 commit comments