我知道我可以使用waitForSelector來測試某個特定元素是否準備就緒,但JavaScript呢? this.waitForSelector('#someid', function _then() {
// do something that requires js to be fully loaded and functional
// before clicking
我在我的桌面上編寫的代碼在Windows 10下運行,一切正常。當我轉移到Centos Server時,我開始出現錯誤。請幫助我 CasperError: Cannot get informations from input[name="email"]: element not found.
/home/casper/casperjs/phantomjs:/platform/casper