Try outputting your selector with a Message Box or Write Line. That’s a good way to verify that you have a legitimate selector, with all the quotes in correct. Then, also use UiExplorer to compare your selector with what is generated through UiPath.
Do not use selector editor (don’t click on[…] button)
click on textbox of selector
use end+shift+home and delete
type manually including quotes “<webctrl aaname=‘”+myVariable+“’ tag=‘DIV’ />”