Hello,
Working on the UI Testing, I'm wondering how would I get text/value from a already selected RadComboBox.
Thanks for reading - Joe
Working on the UI Testing, I'm wondering how would I get text/value from a already selected RadComboBox.
Thanks for reading - Joe
[TestMethod]
public
void
SampleWebAiiTest()
{
Settings.Current.Web.EnableSilverlight =
true
;
Manager.LaunchNewBrowser();
ActiveBrowser.NavigateTo(
"http://demos.telerik.com/silverlight/#ComboBox/FirstLook"
);
SilverlightApp app = ActiveBrowser.SilverlightApps()[0];
Telerik.WebAii.Controls.Xaml.RadComboBox cb = app.Find.ByAutomationId<Telerik.WebAii.Controls.Xaml.RadComboBox>(
"TechnologySelection"
);
Assert.IsNotNull(cb);
cb.SelectItem(
"Silverlight"
,
true
);
Assert.AreEqual(
"Silverlight"
, cb.Text);
// Not working, Expected <Silverlight>, Actual <>
System.Threading.Thread.Sleep(1000);
}