Consider using waitforelement here since there might be race condition that the button is not ready yet.