Unplanned
Last Updated: 29 Mar 2022 14:01 by ADMIN
Terry
Created on: 29 Mar 2022 11:24
Type: Bug Report
1
WPF \\\ Capture() method on main window does not show expanded dropdown

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.

2 comments
ADMIN
Plamen Mitrev
Posted on: 29 Mar 2022 14:01

Hi Terry,

It is great to hear that you have a working solution.

Please also check out the code sample that I shared in the forum post, as it might give you a better way to capture the main window with the dropdown.

Regards,
Plamen Mitrev
Progress Telerik

Does UI testing really fit into CI/CD?

If you want to find out how to take advantage of continuous delivery pipelines, join our Test Studio webinar on Wednesday, April 6 at 11 am EST | 5 pm CET.

Terry
Posted on: 29 Mar 2022 13:52

Thankyou for your help.  I ended up capturing just the dropdown window using ActiveApplication.Windows[1].Capture() for now, and our Test Team was ok with using this output.   I will take a look at the whole desktop as another option as well.

 

Terry