Windows authentication code no longer working now

后端 未结 3 2014
轻奢々
轻奢々 2020-12-21 21:15

My below code for windows authentication was working well for over a year. But for the last few days it is longer working now. I am not able to identify exact reason for tha

相关标签:
3条回答
  • 2020-12-21 22:12

    Try AutoIT to create an exe for the windows authentication and call it where ever required, if nothing else is working. If you are mostly working with Pyton then try this

    Sample code:-

    WinWaitActive("Authentication Required","","120")
    
    If WinExists("Authentication Required") Then
    Send("username{TAB}")
    
    Send("password{Enter}")
    
    EndIf
    
    0 讨论(0)
  • 2020-12-21 22:14

    You could try automating the keyboard directly?? It might work. You automate the keyboard.

    Answered a similar question here - https://stackoverflow.com/a/49109132/6003362

    0 讨论(0)
  • 2020-12-21 22:16

    Did you try

    driver.switchTo().alert();

    or

    driver.switchTo().activeElement();

    before typing credentials?

    However, if this works I can't explain why it worked before.

    0 讨论(0)
提交回复
热议问题