'Returns True if the element identified by `selector` has the CSS class
`klass`.'

def has_css_class(self, selector, klass):

    return (self.selenium.find_element_by_css_selector(selector).get_attribute('class').find(klass) != (-1))
