conversion of existing selenium tests to casperjs