UITestControllCollection _ How To store Similar Controll in a List/UITestControllCollection RRS feed

  • Question

  • Hi All

    I am using Visual Studio(Coded UI) for Testing purpose.

    In one of my scenario .. I have 3 Editbox and 2 Combo Box In a Table Cell.

    How Can I Store Those 3 Editbox in a List or UITestControlCollection

    I tried with following

    HtmlTable table = new HtmlTable(browser);


    HtmlRow row = (HtmlRow)table.Rows[1];

    HtmlCell  cell = (HtmlCell)row.Cells[2]

    HtmlEdit edit = new HtmlEdit();

    UITestControllCollection collection = cell.GetChidren();

    also Tried

    UITestControllCollection collection = edit.FindMatchingControlls();

    Above Code Store All Controls , But I need only Edit Box

    Can anyone help me on this regards


    Tuesday, September 8, 2015 7:03 PM