@step('I can specify html in the display name and save')
def i_can_modify_the_display_name_with_html(_step):
 index = world.get_setting_entry_index(DISPLAY_NAME)
 world.set_field_value(index, "<script>alert('test')</script>")
 verify_modified_display_name_with_html()
 world.save_component()

@ step ( 'I can specify html in the display name and save' ) def i_can_modify_the_display_name_with_html ( _step ) : index = world . get_setting_entry_index ( DISPLAY_NAME ) world . set_field_value ( index , "<script>alert('test')</script>" ) verify_modified_display_name_with_html ( ) world . save_component ( )
if alert appear on save then unexpectedalertpresentexception will occur and test will fail .