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 you create a new Nightwatch project and run a test in the Edge browser against a website that requires basic auth, it says that .registerBasicAuth() is only supported in Chromium based drivers.
As the Edge browser is Chromium based, I'd expect it to work the same way as when using Chrome.
Steps to reproduce
Create a basic Nightwatch project with npm init nightwatch <directory-name>
Write a basic test that navigates to a website protected with basic auth (see below)
Error
The command .registerBasicAuth() is only supported in Chromium based drivers
Sample test
describe('basic auth test',function(){it('login via basic auth',function(browser){browser.registerBasicAuth('username','password').navigateTo('http://some-webpage-with-basic-auth').waitForElementVisible('body').assert.titleContains('some title').end()});});
Command to run
npx nightwatch --env edge test/sample.ts
Verbose Output
[basic auth test] Test Suite
────────────────────────────────────────────────────────
\ Starting EdgeDriver on port 9514...
[23072:26008:0731/195727.583:ERROR:chrome_browser_cloud_management_controller.cc(162)] Cloud management controller initialization aborted as CBCM is not enabled.
| Starting EdgeDriver on port 9514...
[23072:26008:0731/195727.732:ERROR:edge_auth_errors.cc(487)] EDGE_IDENTITY: Get Default OS Account failed: Error: Primary Error: kImplicitSignInFailure, Secondary Error: kAccountProviderFetchError, Platform error: 0, Error string:
i Connected to EdgeDriver on port 9514 (608ms).
Using: msedge (115.0.1901.188) on WINDOWS.
Running login via basic auth:
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Error
The command .registerBasicAuth() is only supported in Chromium based drivers
√ Element <body> was visible after 38 milliseconds.
[23072:26008:0731/195730.338:ERROR:device_event_log_impl.cc(222)] [19:57:30.329] USB: usb_service_win.cc:415 Could not read device interface GUIDs: The system cannot find the specified file. (0x2)
✖ NightwatchAssertError
Hey @DenysLins 👋🏻 , You are most welcome to work on this. We have a check for edge browser but looks like you could also use MicrosoftEdge as browserName. We need to accommodate this in our code. You could also join our discord channel incase you need any help from us.
Description of the bug/issue
When you create a new Nightwatch project and run a test in the Edge browser against a website that requires basic auth, it says that .registerBasicAuth() is only supported in Chromium based drivers.
As the Edge browser is Chromium based, I'd expect it to work the same way as when using Chrome.
Steps to reproduce
npm init nightwatch <directory-name>
Sample test
Command to run
Verbose Output
Nightwatch Configuration
Nightwatch.js Version
3.1.2
Node Version
18.17.0
Browser
Edge 115.0.1901.188
Operating System
Windows 10
Additional Information
No response
The text was updated successfully, but these errors were encountered: