javascript - Web scraping with casperjs returns error -


i trying scrape website using casperjs library. not able progress past page, redirects , loops page on, despite correctly entering form.

casper.then(function(){     // skipped brevity     // form details entered      this.click("#login-button"); // submit form input button } 

and when go next main login page:

casper.then(function(){     capture(); // capture screenshot } 

all returns page still on. going on?

the click function in casperjs doesn't use sort of selector, instead uses new css3 ones. said form input element? if that's case can use selector input[id='login-button'] instead.

casper.then(function(){     // skipped brevity     // form details entered      this.click("input[id='login-button']"); // submit form input button } 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -