'Gets the width and height of element specified by `selector`
Arguments:
selector (str): css selector of a web element
Returns:
dict: Dimensions of a web element.'

def _get_element_dimensions(self, selector):

    element = self.q(css=selector).results[0]
    return element.size
