Question: **Please suggest me, how to open the SSL urls using selenium-rc?**

Answer: 
I have written a quick category on UIImageView to achieve that:

(.h)

```
@interface UIImageView (additions)
- (CGSize)imageScale;
@end

```

(.m)

```
@implementation UIImageView (additions)
- (CGSize)imageScale {
    CGFloat sx = self.frame.size.width / self.image.size.width;
    CGFloat sy = self.frame.size.height / self.image.size.height;
    CGFloat s = 1.0;
    switch (self.contentMode) {
        case UIViewContentModeScaleAspectFit:
            s = fminf(sx, sy);
            return CGSizeMake(s, s);
            break;

        case UIViewContentModeScaleAspectFill:
            s = fmaxf(sx, sy);
            return CGSizeMake(s, s);
            break;

        case UIViewContentModeScaleToFill:
            return CGSizeMake(sx, sy);

        default:
            return CGSizeMake(s, s);
    }
}
@end

```

Multiply the original image size by the given scale, and you'll get your actual displayed image size.
well .. you have to do some math. you have the size of the original image and you have the size of the image view.. so you can calculate whether it will be resized by the height or the width.

if you image view is 300x200 and the image is 1024x768 you can calculate which is the limiting factor

```
300/1024 = 0.29296875
200/768 = 0.260416667

```

so the height is the limiting factor ... the image will be:

267x200