Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97762

I can't handle windows allert to login Selenium Python

$
0
0

I have a problem with handling a window to login for a website. It's not a browser window but a Windows 10 window. There's no way to inspect the code of that window, so switch_to_alert and stuff like that won't work. ActionChains doesn't work as well. I found only one lib "keyboard" which works to simulate keys but that lib doesn't work on external server, maybe because there is no physical keyboard. Do you know others way to resolve this problem to run tests on the external server with Jenkins? Screenshot of the login window.

 keyboard.write(user)
    keyboard.press_and_release("tab")
    keyboard.write(pass)
    time.sleep(1)
    keyboard.press_and_release("enter")

Viewing all articles
Browse latest Browse all 97762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>