Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9231883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:10:49+00:00 2026-06-18T06:10:49+00:00

I am trying to automate sharepoint 2010 people picker, but it is very difficult

  • 0

I am trying to automate sharepoint 2010 people picker, but it is very difficult even to highlight any control inside the window.
I have used hand coding to find the window but the controls inside the window are not highlighting.

 WinWindow pp = new WinWindow(browserWindow);
        pp.TechnologyName = "MSAA";
        pp.SearchProperties[WinWindow.PropertyNames.ClassName] = "Internet Explorer_TridentDlgFrame";
        pp.SearchProperties[WinWindow.PropertyNames.ControlType] = "Window";
        pp.SearchProperties[WinWindow.PropertyNames.Name] = "Select People -- Webpage Dialog";
        pp.Find();
        pp.DrawHighlight();

Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlDocument doc = new Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlDocument(pp);
        doc.TechnologyName = "Web";
        doc.SearchProperties[Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlDocument.PropertyNames.TagName] = "BODY";
        doc.SearchProperties[Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlDocument.PropertyNames.FrameDocument] = "False";
        doc.SearchProperties[Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlDocument.PropertyNames.RedirectingPage] = "False";
        doc.SearchProperties[Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlDocument.PropertyNames.ControlType] = "Document";
        doc.SearchProperties[Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlDocument.PropertyNames.Title] = "Select People";
        doc.SearchProperties[Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlDocument.PropertyNames.PageUrl] = PAGE_URL_Here;
        doc.SearchProperties[Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlDocument.PropertyNames.AbsolutePath] = AbsolutePath_Here;
        doc.SearchProperties[Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlDocument.PropertyNames.ClassName] = "HtmlBody";
        doc.SearchProperties[Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlDocument.PropertyNames.FriendlyName] = "Select People";
        doc.SearchProperties[Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlDocument.PropertyNames.HasFocus] = "False";
        doc.SearchProperties[Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlDocument.PropertyNames.Exists] = "True";
        doc.SearchProperties[Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlDocument.PropertyNames.Enabled] = "True";
        doc.SearchProperties[Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlDocument.PropertyNames.IsTopParent] = "False";
        doc.Find();
        doc.DrawHighlight();

Above code easily highlights people picker window and used this object to find the control inside it is not finding any.

It is showing this error…

    The playback failed to find the control with the given search properties. Additional Details: 
TechnologyName:  'Web'
TagName:  'BODY'
FrameDocument:  'False'
RedirectingPage:  'False'
ControlType:  'Document'

Am i doing it right.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T06:10:50+00:00Added an answer on June 18, 2026 at 6:10 am

    I found the answer for this,..
    Well using crosshair or recording show the control on peoplepicker as separeate control but while finding through code all the control in it are shown as Edit box.
    so need to store all control in a UITestControlCollection and use loop to find the control needed using its name property.
    Then do the mouse or keyboard action.

    //write ur code here to find the parent control
    UITestControlCollection controlFound = matching.FindMatchingControls();
    //use loop to find the control
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I´m trying to automate AZURE VM management like Amazon EC2. Is there any
I've been trying to automate tests on asynchronous requests but I haven't been able
I'm trying to automate in a WinForm using a WebBrowser control to navigate and
I'm trying to automate the Google Docs login process, but the methods that I
I am trying to automate backups with duplicity , but when I test the
I'm trying to automate a server request to the client upon connection but I
trying to automate using perl scripts on windows server using MediaWiki::Bot and Mediawiki::API taken
I'm trying to automate Mac OS X package building via command line interface of
I am trying to automate a block appearing on the website and comparing its
I'm trying to automate detection of broken links and I was startled to see

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.