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

def xblock_component_html_content(self, index=0):

    element = self.q(css='{}    .edx-notes-wrapper-content'.format(self.xblock_component_selector))
    if element.first:
        return element.attrs('innerHTML')[index].strip()
    else:
        return self.q(css=self.xblock_component_selector).attrs('innerHTML')[index].strip()
