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);
    });
   
}; 

How to Set Up Nightwatch.js on Windows

No need to write a new article for this post. we already have a beautiful post which is very easy to follow and implement.

Please go to the the following: https://github.com/nightwatchjs/nightwatch/wiki/Windows-Quick-Start           

and start installing the Nightwatch.js on windows machine :)