c# - How can i find the control type in UIPath -


i using uipath in visual studio , able current focused element want know control type whether textbox or button etc.,

by using select particular element form screen , details in uinode object how can know 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; 

there no direct way of checking type of control. can is, depending on subsystem of control, check attributes determine type. example: if subsystem java should check role attribute, if subsystem webctrl should check tag , type attributes, , on.

to retrieve attribute's value, can use getattribute method


Comments

Post a Comment

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -