The admin access popup is different for passwordless user and a user with a password.
This checks what popup got rendered and based on that acts to get administrative access.
Makes the test's base url, user & password configurable through the
environment. Abstracts differences between hosted and cockpit where
possible to lib, and adds conditionals otherwise.