Solution when you are unable to identify required properties for coded UI find a control a control

Let coded UI recorder find element properties for you its simple .

  1. record this check box action with recorder
  2. Save this function
  3. got to definition of methodenter image description here
  4. go to defination of control properties enter image description here
  5. Copy Whole generated class generated against recordingenter image description here
  6. Paste code in word use the filter and search parameter used here in your hand coded script it makes easy to identify parameters needed by Coded UI Scriptenter image description here
    1. I have a usage example too see the oneenter image description here
    2. Delete Reorder generated script and classes after that or another option is to perform this recorder related work in separate instance of VS in a dummy project 

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s