add a waitfor param so capture is performed into a waitForSelector
remove remote.message event (it produces bad side-effects)