'Get the x and y coordinates of elements'

def coordinates_for_scrolling(self, coordinates_for):

    cordinates_dict = self.browser.find_element_by_css_selector(coordinates_for)
    location = cordinates_dict.location
    for (key, val) in location.iteritems():
        if (key == 'x'):
            x_axis = val
        elif (key == 'y'):
            y_axis = val
    return (x_axis, y_axis)
