How can i find the control type in UIPath

uiautomation
code
uiexplorer

#1

i am using UIPath in visual studio and i am able to get the current focused element but i want to know the Control Type like whether it is TextBox or button etc.,

By using this i am select particular element form the screen and i am get its details in uiNode Object but how can i know the control type.

   WindowState = FormWindowState.Minimized;
   uiNode.SelectInteractive(UiSelectionType.UI_SELECT_NODE);
   listBox1.Items.Add(new CapturedActivity { UiNode = uiNode, ActivityDetails = uiNode.GetSelector(true) + Environment.NewLine });
   WindowState = FormWindowState.Normal;

#2

You’d need to go through the elements properties (usually check either TAG or CLASS).

As a sidenote - I thought SDK was not available anymore…


#3

if you want to know the control type then move to Properties—>Selector …then you can view the control type, Id, name, etc… So please check it once…
Plz be revert with your response :slight_smile:


#4

Yeah in UIPath sutdio iam able to get but iam using UIPath package in c# there how can i determine…???


#5

Call the .Get(string propertyName) method on UiElement object, f.e.:
Console.WriteLine(myElement.Get("tag"));
Note that depending on what property you’re querying you will get a different type in return (most of them are strings, but not all).