How to find the Screen Width & Height of the iOS App?

Mobile Testing, Android App Testing.
aravin
Posts: 47
Joined: Mon Mar 09, 2015 7:43 am

How to find the Screen Width & Height of the iOS App?

Post by aravin » Mon May 11, 2015 7:26 am

I want to find the Width & Height of the iOS App.

How to find that?

Kindly reply as soon as possible!!! :wink:

aravin
Posts: 47
Joined: Mon Mar 09, 2015 7:43 am

Re: How to find the Screen Width & Height of the iOS App?

Post by aravin » Mon May 11, 2015 7:48 am

I have found solution myself!!

Code: Select all

 public static Ranorex.IosApp iosApplication="/mobileapp[@title='com.app.appname']";
		public static int screenWidth=iosApplication.ScreenRectangle.Width;
		public static int screenHeight=iosApplication.ScreenRectangle.Height;
Reference: http://www.ranorex.com/blog/resize-window