Keo Strife Keo Strife - 1 year ago 270
Node.js Question

Get current URL of browser

In Selenium Nodejs, How can I get the current url of the page I'm testing (the moment my test script is running assume that the page initially has been redirected)

Answer Source
    .then(function() {
        return driver.getCurrentUrl();
    .then(function(currentUrl) {
        // work with the current url of browser
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download