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:password@192.168.178.55: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

Community
  • 1
  • 1
zabumba
  • 12,172
  • 16
  • 72
  • 129

1 Answers1

3

Resolved by adding a / at the end of the URL

driver.get('https://user:password@192.168.178.55:7000/wow/')
zabumba
  • 12,172
  • 16
  • 72
  • 129