Modifying the selector

Hi Team,

i need to capture cmd prompt for an automation… here the code needs to run in two environments…
SyntaxEditor Code Snippet

one environment i am getting selector as title=‘C:\WINDOWS\system32\cmd.exe’

another environment i am getting selector as
title=‘C:\Windows\system32\cmd.exe’

is it based on the environment i need to change the value in a Variable and then pass it as selector… is there any way we can achieve it

Hi @devasaiprasad_K

If the Windows word is keep changing then use the wildcards in the Title attribute.

Check the below one,

title=‘C:\W*\system32\cmd.exe’

Hope it helps!!

i had this idea too… let me check the other screens behavior… based on that i will work on…

would there be anyway of ignoring CASE sensitivity, as of my knowledge we cannot Ignore CASE SENSITIVITY in selector, but want to reconfirm?

Yes, we cannot ignore case sensitivity but we can use the wildcards, that’s why I used wildcard in your title attribute… @devasaiprasad_K

Hope you understand!!

we would recommend to use other techniques and grab the prompt text more directly.
Maybe you can elaborate more on your scenario and what is to achieve

Have a look here:

and set it to false. AndOr use Regex Selector

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.