- SAP Log on - Able to run the app (via Public path = C:\Users\Public\Desktop\SAP Logon.lnk) and the key function "tab" was working but the injection of credential is missing. However, the tab isn't working as intended too. In the code, the tab is defined as a single count,but during the testing, the tab is moving twice in the app. Hence, failed to select the intended area.
- Another challenge that we had found today, the SAP Logon does not load any data via public path. Hence, the SAP Logon data is empty.
- However, if the SAP Logon is accessed via (profile path eg. pwsuser) , the SAP Logon showed some data.
#Variablesdir = sys.argv[1]username = sys.argv[2]password = sys.argv[3]x = dir.split("\\")print(x[-1])command = "cd \ && cd Users/Public/Desktop && " + '"' + x[-1] + '"'print(command)print(username)print(password)os.system(command)time.sleep(20)
#Commandpyautogui.press('tab') pyautogui.press('enter') time.sleep(3)pyautogui.typewrite(username)pyautogui.press('tab') time.sleep(3)pyautogui.typewrite(password)pyautogui.press('enter')
print('DONE')
Sorry guys, Im a newbie to this field. Hence, seek some helps to those who might actually know to approach this problem. Thanks.