Wednesday, February 3, 2016

How to navigate to a URL and printing the URL on console in Nightwatch.js

If you have not gone through the setup process on windows. Please go through the post http://nightwatchjs.blogspot.in/2016/02/how-to-set-up-nightwatchjs-on-windows.html and set up Nighwatch.js on windows.


this.NavUrl = function (browser) {
    browser.url("https://www.google.co.in");
    browser.url(function (urltest) {
        console.log("URL is " + urltest.value);
    });
   
}; 

5 comments: