We should wait until the input field's value is actually empty instead of waiting for a fixed time (which could lead to intermittent failures).
We should wait until the input field's value is actually empty instead of waiting for a fixed time (which could lead to intermittent failures).