def add_html_component(page, menu_index, boilerplate=None):
 page.wait_for_component_menu()
 click_css(page, 'button>span.large-html-icon', menu_index, require_notification=False)
 page.wait_for_element_visibility('.new-component-html', 'HTML component menu is visible')
 component_css = 'button[data-category=html]'
 if boilerplate:
  component_css += '[data-boilerplate={}]'.format(boilerplate)
 else:
  component_css += ':not([data-boilerplate])'
 page.wait_for_element_visibility(component_css, 'HTML component {} is visible'.format(boilerplate))
 click_css(page, component_css, 0)

def add_html_component ( page , menu_index , boilerplate = None ) : page . wait_for_component_menu ( ) click_css ( page , 'button>span.large-html-icon' , menu_index , require_notification = False ) page . wait_for_element_visibility ( '.new-component-html' , 'HTML component menu is visible' ) component_css = 'button[data-category=html]' if boilerplate : component_css += '[data-boilerplate={}]' . format ( boilerplate ) else : component_css += ':not([data-boilerplate])' page . wait_for_element_visibility ( component_css , 'HTML component {} is visible' . format ( boilerplate ) ) click_css ( page , component_css , 0 )
adds an instance of the html component with the specified name .