'Extract rendered xblock component type.
Returns:
str: xblock module type
index: which xblock to query, where the index is the vertical display within the page
(default is 0)'

def xblock_component_type(self, index=0):

    return self.q(css=self.xblock_component_selector).attrs('data-block-type')[index]
