def add_advanced_component(page, menu_index, name):
 page.wait_for_component_menu()
 click_css(page, 'button>span.large-advanced-icon', menu_index, require_notification=False)
 page.wait_for_element_visibility('.new-component-advanced', 'Advanced component menu is visible')
 component_css = 'button[data-category={}]'.format(name)
 page.wait_for_element_visibility(component_css, 'Advanced component {} is visible'.format(name))
 click_css(page, component_css, 0)

def add_advanced_component ( page , menu_index , name ) : page . wait_for_component_menu ( ) click_css ( page , 'button>span.large-advanced-icon' , menu_index , require_notification = False ) page . wait_for_element_visibility ( '.new-component-advanced' , 'Advanced component menu is visible' ) component_css = 'button[data-category={}]' . format ( name ) page . wait_for_element_visibility ( component_css , 'Advanced component {} is visible' . format ( name ) ) click_css ( page , component_css , 0 )
adds an instance of the advanced component with the specified name .