Screenshot testing result differs from real-time browser testing for iOS


is it expected that the “screenshot testing” and “real-time testing” functions give identical results for a given device type and browser?

If not, what are the expected differences?

I ask because I have noticed today that, on my iOS device and in lambdatest real-time testing, the javascript property “window.screen.orientation” is undefined. In lambdatest screenshot testing for the same iOS version and device, on the other hand, the property is defined. The opposite is true of the “window.orientation” property: It’s present in screenshot testing but absent in real-time testing and on my actual device.

Thanks in advance for any light you can shed on this difference.

1 Like