'Clicks an image found by `locator`.
Key attributes for images are `id`, `src` and `alt`. See
`introduction` for details about locating elements.'

@keyword
def click_image(self, locator):

    self.info(("Clicking    image    '%s'." % locator))
    element = self.find_element(locator, tag='image', required=False)
    if (not element):
        element = self.find_element(locator, tag='input')
    element.click()
