Question about 'is-keyboard-shown'


#1

an you explain how does is-key-board-shown works. From the doc I did not understand the following: does it guarantee that keyboard is fully opened?

Imagine the following scenario

  1. Click into the input
  2. A keyboard is opening, but still the animation hasn’t finished
  3. Call is-keyboard-shown
  4. What return value will I receive? true? false?

#2

If the animation hasn’t finished you will receive false. If it has finished you will receive true. May want to loop the command or better yet use an implicit wait so that it will loop for a limited time.

This situation is begging for an implicit wait: https://www.seleniumhq.org/docs/04_webdriver_advanced.jsp