def switch_to_main_frame(browser): switch_to_default_content(browser) main_frame = locate_iframe_by_name(browser, main_frame_name) browser.switch_to.frame(main_frame)
def switch_to_search_input_frame(browser): switch_to_search_menu_frame(browser) search_input_frame = locate_iframe_by_name(browser, search_input_frame_name) browser.switch_to.frame(search_input_frame)
def switch_to_search_result_list_frame(browser): switch_to_search_result_frame(browser) result_list_frame = locate_iframe_by_name(browser, result_list_frame_name) browser.switch_to_frame(result_list_frame)
def switch_to_header_frame(browser): switch_to_main_frame(browser) header_frame = locate_iframe_by_name(browser, header_frame_name) browser.switch_to.frame(header_frame)