'Select the advanced settings tab'

def select_advanced_tab(self, desired_item='special_exam'):

    self.q(css=".settings-tab-button[data-tab='advanced']").first.click()
    if (desired_item == 'special_exam'):
        self.wait_for_element_presence('input.no_special_exam', 'Special    exam    settings    fields    not    present.')
    if (desired_item == 'gated_content'):
        self.wait_for_element_visibility('#is_prereq', 'Gating    settings    fields    are    present.')
