ported findElement.js to use driverBlock