I need to check if my device is a Tablet or a phone while an Appium script is running (the app behaviour is different on Phone & Tablet, therefore I need to check the device type to execute the right flow).
Is it possible to check using Appium? I am using Appium 1.22.3
Thanks for your help. This worked for me for iOS. I can see that ‘userInterfaceIdiom’ value is 0 for Phone & 1 for a tablet. Is there anything similar for Android?