I am trying to fill a login form in Citrix environment using PyAutoGUI. But I am unable to press TAB
key to switch form fields. Keys like Enter
is working properly.
Manually TAB
is working on that form but it is not working using PyAutoGUI. Below is the code I am trying.
time.sleep(10)
im9 = pyautogui.screenshot()
im9 = np.array(im9)
# locate_image locates image on current screen
username_sp = fi.locate_image(im9, 'Screenshot.png')
if username_sp:
pyautogui.typewrite('Username\t',interval=1)
time.sleep(2)
pyautogui.press('tab')
pyautogui.typewrite(r'pass',interval=0.25)
But, user
and pass
get clubbed into single Username field. On normal environment TAB
is working Ok.