XCUITest screenshot does not work in landscape mode

Hi!

At the time of the screenshot device in landscape mode, but screeshot in portrait mode...

How to solve this problem?

I have the same issue.

XCUITest screenshot does not work in landscape mode
 
 
Q