Fixing issue #118.
The previous code only filled the login data when set to headless, makes no sense if the login data is provided beforehand.
The new behavior is asking for manual login only if the login data is missing, by forcing no headless. If both username and password are provided, the user can use either headless or no headless.
I also fixed an issue that made the login function always override the headless flag with False unless specified every time.
Finally, I updated the readme to better explain the accepted arguments.
Fixing issue #118.
The previous code only filled the login data when set to headless, makes no sense if the login data is provided beforehand.
The new behavior is asking for manual login only if the login data is missing, by forcing no headless. If both username and password are provided, the user can use either headless or no headless.
I also fixed an issue that made the login function always override the headless flag with
False
unless specified every time.Finally, I updated the readme to better explain the accepted arguments.