Question about 'is-keyboard-shown'

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?

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: The Selenium Browser Automation Project | Selenium

1 Like