@@ -15,37 +15,37 @@ public class ActionsTests
1515 public void Setup ( )
1616 {
1717 var driverOptions = FlaUIDriverOptions . TestApp ( ) ;
18- driver = new RemoteWebDriver ( WebDriverFixture . WebDriverUrl , driverOptions ) ;
18+ _driver = new RemoteWebDriver ( WebDriverFixture . WebDriverUrl , driverOptions ) ;
1919 }
2020
2121 [ TearDown ]
2222 public void Teardown ( )
2323 {
24- driver ? . Dispose ( ) ;
24+ _driver ? . Dispose ( ) ;
2525 }
2626
2727 [ Test ]
2828 public void PerformActions_KeyDownKeyUp_IsSupported ( )
2929 {
30- var element = driver . FindElement ( ExtendedBy . AccessibilityId ( "TextBox" ) ) ;
30+ var element = _driver . FindElement ( ExtendedBy . AccessibilityId ( "TextBox" ) ) ;
3131 element . Click ( ) ;
3232
33- new Actions ( driver ) . KeyDown ( Keys . Control ) . KeyDown ( Keys . Backspace ) . KeyUp ( Keys . Backspace ) . KeyUp ( Keys . Control ) . Perform ( ) ;
34- string activeElementText = driver . SwitchTo ( ) . ActiveElement ( ) . Text ;
33+ new Actions ( _driver ) . KeyDown ( Keys . Control ) . KeyDown ( Keys . Backspace ) . KeyUp ( Keys . Backspace ) . KeyUp ( Keys . Control ) . Perform ( ) ;
34+ string activeElementText = _driver . SwitchTo ( ) . ActiveElement ( ) . Text ;
3535 Assert . That ( activeElementText , Is . EqualTo ( "Test " ) ) ;
3636 }
3737
3838 [ Test ]
3939 public void ReleaseActions_Default_ReleasesKeys ( )
4040 {
41- var element = driver . FindElement ( ExtendedBy . AccessibilityId ( "TextBox" ) ) ;
41+ var element = _driver . FindElement ( ExtendedBy . AccessibilityId ( "TextBox" ) ) ;
4242 element . Click ( ) ;
43- new Actions ( driver ) . KeyDown ( Keys . Control ) . Perform ( ) ;
43+ new Actions ( _driver ) . KeyDown ( Keys . Control ) . Perform ( ) ;
4444
45- driver . ResetInputState ( ) ;
45+ _driver . ResetInputState ( ) ;
4646
47- new Actions ( driver ) . KeyDown ( Keys . Backspace ) . KeyUp ( Keys . Backspace ) . Perform ( ) ;
48- string activeElmentText = driver . SwitchTo ( ) . ActiveElement ( ) . Text ;
47+ new Actions ( _driver ) . KeyDown ( Keys . Backspace ) . KeyUp ( Keys . Backspace ) . Perform ( ) ;
48+ string activeElmentText = _driver . SwitchTo ( ) . ActiveElement ( ) . Text ;
4949 Assert . That ( activeElmentText , Is . EqualTo ( "Test TextBo" ) ) ;
5050 }
5151 }
0 commit comments