mardi 28 avril 2015

How can I use protractor to verify an URL?

I would like to get the current URL using protractor, and then verify that this URL is the one that I need. I am using:

istheSameURL(url) {
    return browser.getCurrentUrl() === 'http://localhost:9000/#/analysis/62/1';
}

However, it is not working.

Aucun commentaire:

Enregistrer un commentaire