Some UI tests on iPhones won't work on iPads. This video gives you strategies on dealing with the issue.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/3530-testing-in-ios/lessons/27
Some UI tests on iPhones won't work on iPads. This video gives you strategies on dealing with the issue.
Iām getting this error message:
return UIDeviceOrientationIsPortrait(XCUIDevice.shared.orientation)
āāUIDeviceOrientationIsPortraitā has been replaced by property āUIDeviceOrientation.isPortraitāā
and when I changed it:
return UIDeviceOrientation.IsPortrait(XCUIDevice.shared.orientation)
"Type āUIDeviceOrientationā has no member āIsPortraitā
Why is this and why am I getting this error when the tutorial is not? How do I fix it? Thanks
Capital I should be lowercase i ?
Thanks sgerrard but I tried that and had no luck.
Maybe it is an instance property now, not a class property.
See if you can get somewhere with
return XCUIDevice.shared.orientation.isPortrait