Convert string to Uielement variable

Hi,

I have complete Uielement stored in a string variable. I want to use it into “Type Into”.
I am unable to convert the string type to Uielement variable type. I tried
DirectCast(“StrVar_Uielement”,UiElement) ; but doesnot work

Please help.

Hi @garimavarshney9

Try this method

Sequence:
Assign:
- To: selectorStr

    - Value: "<html app='chrome.exe' title='Example' /><ctrl name='username' 
                 role='editable text' />"

Type Into:
    - Selector: selectorStr
    - Text: "YourText"

Hope it helps
Cheers

please show us the string value

@garimavarshney9

What kind of string value si it?

are you storing the selector?

if yes then give it in the selector field it accepts string values

cheers

You can’t convert a string to a UI Element. A UI Element is an object with many properties.

I have complete Uielement stored in a string variable

This is not possible.

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