replace casperjs with selenium