Refactored EnterTextSelect helper method