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
Nice and Useful Informative Blog.
ReplyDeleteVisit us: ui path online training
Visit us: uipath training in hyderabad