Describe the bug
When using the Basic Authentication method of wdi5 with usernames or passwords that contain special URL characters like # or @ the program stops with the exception: TypeError: Invalid URL (Stacktrace attached).
To Reproduce
Steps to reproduce the behavior:
Provide credentials with URL special characters in the .envfile
Start wdi5
🧨
Expected behavior
Currently the content of the .env file simply put inside the URL. But instead it should be encoded before used in an URL.
The following snippet in BasicAuthenticator.ts:23 resolves the issue:
Describe the bug When using the Basic Authentication method of wdi5 with usernames or passwords that contain special URL characters like
#
or@
the program stops with the exception: TypeError: Invalid URL (Stacktrace attached).To Reproduce Steps to reproduce the behavior:
.env
filewdi5
Expected behavior Currently the content of the
.env
file simply put inside the URL. But instead it should be encoded before used in an URL. The following snippet in BasicAuthenticator.ts:23 resolves the issue:Logs/Console Output
Runtime Env (please complete the following information):
wdi5/wdio-ui5-service
-version: 2.0.8UI5
version: 1.120.13wdio
-version (output ofwdio --version
): 20.11.0node
-version (output ofnode --version
): [e.g. v17.3.0]