Search code examples
pythonseleniumauthenticationpopupwindow

How to fill in this popup using selenium in python? When right clicked, inspect option is not seen


below is a screenshot of a local website. I tried finding the XPath, switching the window but the user input couldn't be done. Help needed.

[popup image]1


Solution

  • Thats not an alert , its a browser level window you cannot handle it from selenium. You should use any other tool like silkuli, autoit etc

    you can also authenticate directly from url to avoid that pop up as :

    if your url was like

    https://www.yoururl.com

    change it as:

    url = "https://username:[email protected]"
    driver.get(url)