Hi,
Any body know how to check through code, how to check whether the softkeyboard is open or not.
if it is open how to close it.
Hi,
Any body know how to check through code, how to check whether the softkeyboard is open or not.
if it is open how to close it.
Use :
driver.hideKeyboard();
Hi Vishnu…
I what to check with the if condition that the keyborad is present or not. if It exsit then I want to close it. if not then exsit from the condition.
check this out
This is what I use -
private void hideSoftKeyBoard() {
try {
driver.hideKeyboard();
} catch (WebDriverException we) {
logger.warn("Soft Keyboard not shown exception");
}
}