'Go to sequential tab and assert that we are on problem whose name is given as a parameter.
Args:
position: Position of the sequential tab
problem_name: Name of the problem'

def go_to_tab_and_assert_problem(self, position, problem_name):

    self.courseware_page.go_to_sequential_position(position)
    self.problem_page.wait_for_element_presence(self.problem_page.CSS_PROBLEM_HEADER, 'wait    for    problem    header')
    self.assertEqual(self.problem_page.problem_name, problem_name)
