javascript - casperjs testing an internal site -


i trying run casper test internal site. running on pre-production environment, code far

    var casper = require('casper').create({                  verbose: true,                  loglevel:"debug"                  });      // listening custom event     casper.on('page.loaded', function() {               this.echo('the page title ' + this.gettitle());               this.echo('value is: '+ this.getelementattribute                        ('input[id="edit-capture-amount"]',                          'value'));     });      casper.start('https://preprod.uk.systemtest.com', function() {                  this.echo(this.gettitle());                  this.capture('frontpage.png');                  // emitting custom event                  this.emit('age.loaded.loaded');         });      casper.run(); 

as can see not problem address not reachable. capture shows blank page. not sure doing wrong. have checked code cnn , google urls, title , screen capture works fine. not sure how make work internal site.

i had exact same problem. in browser resolve url, capserjs not. got about::blank web page.

adding --ignore-ssl-errors=yes worked charm!

casperjs mytestjs //didn't work  capserjs --ignore-ssl-errors=yes mytestjs //worked perfect! 

Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -