This question is locked. New answers and comments are not allowed.
Hi All,
I want to locate the elements without specifying the Object Type.
Below is my code:
Dim Element = wpfApp.Find.AllByName("UserName")
'Above line I am getting the issue.
If I use the below code then its working.
Dim Element = wpfApp.Find.AllByName(of TextBox)("UserName")
But I want to locate the objects without specifying object type or else in the way of below code
Dim ObjType = "TextBox"
Dim Element = wpfApp.Find.AllByName(of ObjType)("UserName")
I want to locate the elements without specifying the Object Type.
Below is my code:
Dim Element = wpfApp.Find.AllByName("UserName")
'Above line I am getting the issue.
If I use the below code then its working.
Dim Element = wpfApp.Find.AllByName(of TextBox)("UserName")
But I want to locate the objects without specifying object type or else in the way of below code
Dim ObjType = "TextBox"
Dim Element = wpfApp.Find.AllByName(of ObjType)("UserName")