If I use any other device apart from iPhone 16 pro max. I am not facing such offset issue. I am using the below code to get the device screen information:
var screenInfo = Driver.ExecuteScript(deviceScreenInfo) as Dictionary<string, object>;
from here I am retrieving the scale factor. But just for the case of iPhone 16 pro max devices I am facing offset.
Is it a know issue? Please help or suggest what can be done in the case.
Can you reproduce this locally on a real device or simulator?
You don’t mention which client you are using but it kind of looks like JavaScript (webdriverio). Is that the case? Also, what version of Appium? Did this happen in earlier versions or is it something new? Finally, and probably most importantly, what version of Xcode?
Have you reported this to BrowserStack? Most people here don’t have BrowserStack accounts, so if it’s a BrowserStack issue, can’t reproduce. The screenshot (Mobile Recorder Widget) looks like a BrowserStack tool of some kind. Do you see the same behavior in Inspector?
Thank you for your response! I am working on a .NET application and using the Appium .NET client. The Appium version I’m using is 2.13.1. This issue is new to this version and wasn’t observed in earlier versions. I am also using Xcode version 16. Let me know if any additional details are needed.
I have tried reproducing the issue on simulator, but it works as expected.
Also, the image shared is not a browser stack tool, it’s the tool I am working on. On the inspector I didn’t see such behavior.
Ok, that’s interesting. Could be a BrowserStack issue, I hope you have reported it to them.
I’m sorry I didn’t ask what version of iOS. I’m just going to post for you the compatibility matrix for Xcode and iOS. Make sure your iOS is supported by the Xcode version as I’ve seen problems like yours related to this: