def click_component_from_menu(category, component_type, is_advanced):
 if is_advanced:
  world.retry_on_exception(_click_advanced, ignored_exceptions=AssertionError)
 link = world.retry_on_exception((lambda : _find_matching_button(category, component_type)), ignored_exceptions=AssertionError)
 world.retry_on_exception((lambda : link.click()))

def click_component_from_menu ( category , component_type , is_advanced ) : if is_advanced : world . retry_on_exception ( _click_advanced , ignored_exceptions = AssertionError ) link = world . retry_on_exception ( ( lambda : _find_matching_button ( category , component_type ) ) , ignored_exceptions = AssertionError ) world . retry_on_exception ( ( lambda : link . click ( ) ) )
creates a component for a category with more than one template .