You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we run Nightwatch tests using Selenium, the CDP connection is not reset across different test suites, while it resets correctly when running tests with webdrivers directly.
This leads to the following error when using .registerBasicAuth() command:
Error Error while running .registerAuth() protocol action: Cannot read properties of undefined (reading 'on') - /node_modules/selenium-webdriver/lib/webdriver.js:1356:24)
Steps to reproduce
Pick any two example tests and add the following test case to it:
Also, if we use .registerBasicAuth() in two different test cases (with different credentials) in the same test suite, the credentials passed to the second call will never get registered.
This can be solved by creating a new CDP connection everytime we call .registerBasicAuth().
Description of the bug/issue
When we run Nightwatch tests using Selenium, the CDP connection is not reset across different test suites, while it resets correctly when running tests with webdrivers directly.
This leads to the following error when using
.registerBasicAuth()
command:Steps to reproduce
Sample test
No response
Command to run
No response
Verbose Output
No response
Nightwatch Configuration
No response
Nightwatch.js Version
latest
Node Version
No response
Browser
No response
Operating System
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: