Issue #2316739 by eshta: convert selector generation to visitor_actions_ui original method.