window.SearchProperties.Add parameter RRS feed

  • Question

  • window.SearchProperties.Add("Title","WindowTitle");

    i want to know the full list of first parameter string

    for example, title, classname, etc, where to find these full list name?

    Wednesday, December 19, 2012 5:42 AM

All replies

  • Hello Wayne,

    Thank you for your post.

    If you mean that you need to pass some property values such as Title and ClassName in the first parameter of SearchProperties.Add, you can drag the crosshair on the control using Coded UI Test Builder and then you will see many property name and property value pairs of the control. Then you can search the control using those properties through SearchProperties.Add.

    If I have misunderstood anything, please feel free to let me know.

    Best regards,

    Amanda Zhu [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Wednesday, December 19, 2012 8:51 AM
  • I do not think there is a list written down anywhere. Each type of control will have its own set of names. I would use the cross hairs tool to examine the relevant parts of the screen. The properties available for that control are listed in the left hand column of the panel containing the "add assertion" button.



    Wednesday, December 19, 2012 9:18 AM