casperjs - Click no working cause Script timeout of 5000ms reached, exiting error -
my click function is:
casper.then(function() { this.click('button[data-click-location="customerreviewstab"]'); console.log('clicked reviews tab'); });
the terminal shows:
[debug] [phantom] mouse event 'mousedown' on selector: button[data-click-location="customerreviewstab"] [debug] [phantom] mouse event 'mouseup' on selector: button[data-click-location="customerreviewstab"] [debug] [phantom] mouse event 'click' on selector: button[data-click-location="customerreviewstab"] clicked reviews tab [info] [phantom] step anonymous 4/7: done in 5705ms. [info] [phantom] step _step 5/7 http://www.bestbuy.com/site/dji-phantom-3-standard-quadcopter-white/4406800.p?skuid=4406800 (http 200) [info] [phantom] step _step 5/7: done in 5771ms. [error] [phantom] script timeout of 5000ms reached, exiting. script timeout of 10000ms reached, exiting.
i change click function this:
casper.then(function() { this.click('button.accordion-toggle.accordion-item'); console.log('clicked reviews tab'); });
it shows same error.
i try reset timeout:
var casper = require("casper").create({ verbose: true, timeout: 10000, // reset timeout limit loglevel: 'debug', pagesettings: { loadimages: false, loadplugins: false } });
just change error message:
[error] [phantom] script timeout of 10000ms reached, exiting. script timeout of 10000ms reached, exiting.
it looks click function not working, right ?
i can not figure out , appreciated.
thanks in advance.
url: http://www.bestbuy.com/site/dji-phantom-3-standard-quadcopter-white/4406800.p?skuid=4406800
Comments
Post a Comment