79230030

Date: 2024-11-27 11:24:08
Score: 0.5
Natty:
Report link

In Kotlin I created a function to check if keyboard is shown.

fun hideKeyboard() {
        val shownKeyboard = driver.executeScript("mobile: isKeyboardShown")
        if (shownKeyboard.equals(true)) {
            driver.executeScript("mobile: hideKeyboard")
        }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Márcio Corrêa