For very specific/difficult automation some parts of the selector is known at run-time so the selector looks like "<wnd title='" + someVariable + "'/>"
which is hard to get right and it is not correctly parsed by our tools (selector editor etc)
It would be nice if we can have something like: "<wnd title='{someVariable}'/>"
The same syntax should also be available in VB.NET since version 14:
Perhaps the selector editor fields could be made to accept variable names and generate such a string? It would definitely be a neat improvement to be able to use variables transparently with the validator and especially the highlighter function in UiExplorer.
The selectors are currently a XML strings, but they cannot be dynamically generated. The ability to use wildcards is not enough for me. I think it would be very useful to be able to create selectors using variables eg:
Auto generated Selector:
“(webctrl aaname=‘Insert 1 file’ idx=‘1’ parentid=‘app’ tag=‘SPAN’ /)”
With wildcard:
“(webctrl aaname=‘Insert * file’ idx=‘1’ parentid=‘app’ tag=‘SPAN’ /)”
I would like:
“(webctrl aaname=‘Insert “+fileCount.ToString+” file’ idx=‘1’ parentid=‘app’ tag=‘SPAN’ /)”
Please note quotes and replace brackets with more than and less than as required.
I have faced such situation. So instead of adding dynamic variables in selector, I add random keyword in selector and then I use String.Replace to create a selector.