casper not accepting webpage instance