Implement waitForSelector as in node-proxy