I know I can select the UiElement for YYYYY by using FindChildren and Get Ancestor, but if I use “Get Text” to get “XXXXXYYYYYY”, put it into some variable, and somehow get rid of XXXXX, will be gone when I past it back to the field.
So I think I’ll have to select/highlight the exact text I want to delete in the field but not getting the text into the variable.
Hi
Hope these steps would help you resolve this
—use CLICK ACTIVITY on that element
—then use SEND HOT KEY activity with key as ctrl+a
—another another send hot key activity with key as ctrl+c
—now use a activity called GET FROM CLIPBOARD activity and store that in a variable of type string named str_input
—then use a ASSIGN activity and mention like this str_output = str_input.ToString.Replace(“yourword”,”tobereplacewithword”)
—then use SET TO CLIPBOARD activity and pass the variable str_output as input
—now use SEND HOT KEY activity with key as ctrl+v in that same field