Hi all,
I'm currently using the framework to create performance tests for a WPF application. I need to record the time between when I click on a combo box and when the combo box is actually present.
I can't see an event that I can attach too that would tell me the combobox was down, you can see if it is down but no event.
Here's what I mean:
IList<ComboBox> allByType = wpfWindow.Find.AllByType<ComboBox>(); IEnumerable<ComboBox> comboBoxs = allByType.Where(x => x.Text.Contains("Test")); ComboBox comboBox = comboBoxs.First(); _stopWatch = Stopwatch.StartNew(); comboBox.OpenDropDown(true); //Check to see if drop down is present or fire event Console.WriteLine("Total dropdown loading time (ms): " + _stopWatch.Elapsed.TotalMilliseconds);
Thanks,
Sara