'Open component Edit Dialog for first component on page.
Arguments:
xblock_index: number starting from 1 (0th entry is the unit page itself)'

def edit_component(self, xblock_index=1):

    self.unit_page.xblocks[xblock_index].edit()
