I have an expanded dropdown and I want to capture its state in a screenshot. I used the method below, but it excludes the dropdown that is open.
ActiveApplication.MainWindow.Capture();
The workaround is to capture the whole desktop with a predefined step in Test Studio.