1

I am accessing a Flask app URL with BASIC Auth

from xvfbwrapper import Xvfb
from selenium import webdriver
from selenium.webdriver.chrome.options import Options

def main():
    xvfb = Xvfb()

    xvfb.start()

    driver = webdriver.Chrome()
    driver.get('https://user:[email protected]:7000/wow')

    xvfb.stop()

if __name__ == '__main__':
    main()

Passing the user and password with the URL doesn't work

Any further pointers?

I am pretty aware that there is at least a dozen posts that seems to deal with this same exact issue, although none actually resolve it while using the ChromeDriver with Flask BASIC Auth or are simply outdated.

Here for Firefox only or Here

1 Answer 1

3

Resolved by adding a / at the end of the URL

driver.get('https://user:[email protected]:7000/wow/')
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.