added method to wait until the cursor is at position with extra
implemented wait_until_cursor_at