createSessions: How to create multiple sessions and use them for testing

14 views
Skip to first unread message

Janaki Sathiyamurthy

unread,
May 19, 2022, 12:01:13 PM5/19/22
to NightwatchJs
createSessions: https://v09.nightwatchjs.org/api/session.html

Is there a way to create multiple sessions and use them to run tests.

Use-case:
1. User 1 logs-in to a browser using an application
2. User 2 logs-in to the same application in a different browser / incognito window
3. User 2 is manager for User 1
4. Automate flows by running tests in 2 different browsers / incognito modes to test flows between user 1 & 2

Reply all
Reply to author
Forward
0 new messages