@bdd.when(bdd.parsers.parse('I wait for the javascript message "{message}"'))
def javascript_message_when(quteproc, message):
 quteproc.wait_for_js(message)

@ bdd . when ( bdd . parsers . parse ( 'I wait for the javascript message "{message}"' ) ) def javascript_message_when ( quteproc , message ) : quteproc . wait_for_js ( message )
make sure the given message was logged via javascript .