mercredi 18 décembre 2019

I can't handle windows allert to login Selenium Python

I have a problem with handle window to login from website. It's not browser window but Widows 10 window. No way to inspect code of that window, so switch_to_alert and stuff like that doen't work. ActionChains doesn't work as well. I found only one lib "keyboard" witch works to symulate keys but that lib doesn't work on external sever, maybe because there is no physical keyboard. Do you know others way to resolve problem to run test onthe external server with Jenkins? enter image description here

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

enter image description here

Aucun commentaire:

Enregistrer un commentaire