def vb_wait_for_session_state(xp_session, state='Unlocked', timeout=10, step=None):
 args = (xp_session, state)
 wait_for(_check_session_state, timeout=timeout, step=step, default=False, func_args=args)

def vb_wait_for_session_state ( xp_session , state = 'Unlocked' , timeout = 10 , step = None ) : args = ( xp_session , state ) wait_for ( _check_session_state , timeout = timeout , step = step , default = False , func_args = args )
waits until a session state has been reached .