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")