then type Capabilities.screenResolutionX and this will give you the
screen res x
for Y is Capabilities.screenResolutionY.
Hope it helps:)
http://www.riyasatali.com/images/error.jpg
here is the jpg what i m getting in result.
Is there any thing I am missing ?