I'm making some tests in Protractor and encountered a little problem:
I made a test to register a new user, when I finish registering it the url will be something like this:
#/user/592/profile
So, my question is, how can I manage to get the ID of the new user to get a true in my test? Something like this:
expect(browser.getCurrentUrl()).toEqual(browser.baseUrl+#/user/ID_OF_NEW_USER/profile);
How can I do this? If it's possible of course.
Aucun commentaire:
Enregistrer un commentaire