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
mkankatala
(Mahesh Kankatala)
July 16, 2024, 6:41am
2
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?
mkankatala
(Mahesh Kankatala)
July 16, 2024, 6:58am
5
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!!
ppr
(Peter Preuss)
July 16, 2024, 7:52am
6
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:
The UiPath Documentation Portal - the home of all our valuable information. Find here everything you need to guide you in your automation journey in the UiPath ecosystem, from complex installation guides to quick tutorials, to practical business...
and set it to false. AndOr use Regex Selector
system
(system)
Closed
July 26, 2024, 6:54am
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.