Closed castrolol closed 6 years ago
Hey @castrolol, see if this snippet helps you.
chrome
.goto('http://localhost:8000')
.then(() => chrome.click('#details'))
.then(() => chrome.evaluate(() => window.location.href))
.then(location =>
expect(location).toBe('http://localhost:8000/details')
));
thank you dude !
So Awesome !
Thanks friends, closing this issue! Also, I believe goto
returns the final URL:
chrome
.goto('http://localhost:8000')
.then((finalURL) => console.log(finalURL) && chrome.click('#details'))
I have a scenario that I would like to assert the current URL, today I could not find how to do this.
Is there any way today using navalia.js to do this?