node.js - webdriverJS, jasmine - why isn't this test redirecting browser to specified URL? -


i running test suite on

  • nodejs
  • selenium-webdriver
  • jasmine-node (using jasmine 1.3)

when run spec below, browser window loads, doesn't redirect specified url - nothing until test times out.

// testspec.js var webdriver = require('selenium-webdriver');  var driver = new webdriver.builder().     withcapabilities(webdriver.capabilities.firefox()).     build();  jasmine.getenv().defaulttimeoutinterval = 10000;    describe('basic test', function () {     it('should on correct page', function (done) {         driver.get('http://www.google.com');         driver.gettitle().then(function(title) {             expect(title).tobe('google');             done();         });      }); }); 

how can browser redirect intended url?

have tried this:

var driver = new webdriver.builder()     .forbrowser('firefox')     .build(); 

refer article help: http://www.techinsight.io/review/devops-and-automation/browser-automation-using-selenium-webdriver-and-nodejs/


Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -