New to Telerik Test Studio Dev EditionStart a free 30-day trial

Verify Silverlight ComboBox Contains Specific Text

I would like to iterate through a Silverlight ComboBox and verify that it contains specific text strings.

Solution

Here is the sample code to achieve that.

C#
    ComboBox cb = Pages.SilverlightToolkitSamples.SilverlightApp.Item0Combobox;
    bool found = cb.TextBlockContent.Contains(Data["Col1"].ToString());
    
    Log.WriteLine("Match found: " + found.ToString());
    Assert.IsTrue(found);
In this article
Solution
Not finding the help you need?
Contact Support