@bdd.when(bdd.parsers.parse('I wait until {path} is loaded'))
def wait_until_loaded(quteproc, path):
 quteproc.wait_for_load_finished(path)

@ bdd . when ( bdd . parsers . parse ( 'I wait until {path} is loaded' ) ) def wait_until_loaded ( quteproc , path ) : quteproc . wait_for_load_finished ( path )
wait until the given path is loaded .