Skip to content
This repository has been archived by the owner on Dec 26, 2019. It is now read-only.

Screen Scale 2 for iPhone 7 Plus(Physical Device) #1128

Open
tahasamad opened this issue Jul 11, 2019 · 0 comments
Open

Screen Scale 2 for iPhone 7 Plus(Physical Device) #1128

tahasamad opened this issue Jul 11, 2019 · 0 comments

Comments

@tahasamad
Copy link

Running WDA on Physical Device:

iPhone 7 Plus | iOS 12.1.2

The following code in any WDA API (e.g. status):

[UIScreen mainScreen].scale; //Returns 2.
[XCUIScreen mainScreen].scale; //Returns 2.

On Simulator(iPhone 7 Plus) 3 is returned.

Should this not be 3 on physical device as well? If so, any idea how to get around this problem? Generally on forums its suggested to add appropriate Launch Screen / Image to app. But WebDriverAgentRunner has target application set as None. So not sure where to add the launch image/screen.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant