Hi,
Is there a way to determine iOS keyboard is shown?
Please see screenshot.
http://postimg.org/image/7tj4hgn7j/37
Thanks.
created
Aug '15
last reply
Nov '18
- 6
replies
- 1.2k
views
- 6
users
- 4
likes
- 1
link
Hi,
Is there a way to determine iOS keyboard is shown?
Please see screenshot.
http://postimg.org/image/7tj4hgn7j/37
Thanks.
I will go with solution provided by "amedvedev" as class Names are more reliable in iOS. But as said it works only on Simulator.
!driver.findElements(MobileBy.className("UIAKeyboard")).isEmpty();
OR
!driver.findElements(By.className("UIAKeyboard")).isEmpty();
isEmpty() is important other wise method will throw exception and test execution will break.