File tree 1 file changed +15
-2
lines changed
test/integration/Android/Device
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,21 @@ public void IsKeyBoardShownTestCase()
47
47
var text_edit_btn = By . Id ( "io.appium.android.apis:id/left_text_edit" ) ;
48
48
_driver . FindElement ( text_edit_btn ) . Clear ( ) ;
49
49
_driver . FindElement ( text_edit_btn ) . Click ( ) ;
50
- bool keyboard_bool = _driver . IsKeyboardShown ( ) ;
51
- Assert . That ( keyboard_bool ) ;
50
+ bool is_visible = _driver . IsKeyboardShown ( ) ;
51
+ Assert . That ( is_visible ) ;
52
52
}
53
+
54
+ [ Test ]
55
+ public void HideKeyBoardWithKeyTestCase ( )
56
+ {
57
+ _driver . StartActivity ( "io.appium.android.apis" , ".app.CustomTitle" ) ;
58
+ var text_edit_btn = By . Id ( "io.appium.android.apis:id/left_text_edit" ) ;
59
+ _driver . FindElement ( text_edit_btn ) . Clear ( ) ;
60
+ _driver . FindElement ( text_edit_btn ) . Click ( ) ;
61
+ _driver . HideKeyboard ( "Enter" ) ;
62
+ bool is_visible = _driver . IsKeyboardShown ( ) ;
63
+ Assert . That ( ! is_visible ) ;
64
+ }
65
+
53
66
}
54
67
}
You can’t perform that action at this time.
0 commit comments