<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic python pyautogui automate SAP Log On : Failed to do Injection. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/python-pyautogui-automate-sap-log-on-failed-to-do-injection/m-p/12684379#M2017207</link>
    <description>&lt;UL&gt; 
   &lt;LI&gt;SAP Log on - Able to run the app (&lt;STRONG&gt;via Public path =&lt;/STRONG&gt; &lt;STRONG&gt;C:\Users\Public\Desktop\SAP Logon.lnk&lt;/STRONG&gt;) 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.&lt;/LI&gt; 
   &lt;LI&gt;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.&lt;/LI&gt; 
   &lt;LI&gt;However, if the SAP Logon is accessed via &lt;STRONG&gt;(profile path eg. pwsuser) &lt;/STRONG&gt;, the SAP Logon showed some data.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#Variablesdir = sys.argv[1]username = sys.argv[2]password = sys.argv[3]x = dir.split("\\")print(x[-1])command = "cd \ &amp;amp;&amp;amp; cd Users/Public/Desktop &amp;amp;&amp;amp; " + '"' + x[-1] + '"'print(command)print(username)print(password)os.system(command)time.sleep(20)&lt;BR /&gt;#Commandpyautogui.press('tab') pyautogui.press('enter') time.sleep(3)pyautogui.typewrite(username)pyautogui.press('tab') time.sleep(3)pyautogui.typewrite(password)pyautogui.press('enter')&lt;BR /&gt;print('DONE')&lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;P&gt;Sorry guys, Im a newbie to this field. Hence, seek some helps to those who might actually know to approach this problem. Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2023 13:53:25 GMT</pubDate>
    <dc:creator>usertest-123</dc:creator>
    <dc:date>2023-01-12T13:53:25Z</dc:date>
    <item>
      <title>python pyautogui automate SAP Log On : Failed to do Injection.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/python-pyautogui-automate-sap-log-on-failed-to-do-injection/m-p/12684379#M2017207</link>
      <description>&lt;UL&gt; 
   &lt;LI&gt;SAP Log on - Able to run the app (&lt;STRONG&gt;via Public path =&lt;/STRONG&gt; &lt;STRONG&gt;C:\Users\Public\Desktop\SAP Logon.lnk&lt;/STRONG&gt;) 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.&lt;/LI&gt; 
   &lt;LI&gt;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.&lt;/LI&gt; 
   &lt;LI&gt;However, if the SAP Logon is accessed via &lt;STRONG&gt;(profile path eg. pwsuser) &lt;/STRONG&gt;, the SAP Logon showed some data.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#Variablesdir = sys.argv[1]username = sys.argv[2]password = sys.argv[3]x = dir.split("\\")print(x[-1])command = "cd \ &amp;amp;&amp;amp; cd Users/Public/Desktop &amp;amp;&amp;amp; " + '"' + x[-1] + '"'print(command)print(username)print(password)os.system(command)time.sleep(20)&lt;BR /&gt;#Commandpyautogui.press('tab') pyautogui.press('enter') time.sleep(3)pyautogui.typewrite(username)pyautogui.press('tab') time.sleep(3)pyautogui.typewrite(password)pyautogui.press('enter')&lt;BR /&gt;print('DONE')&lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;P&gt;Sorry guys, Im a newbie to this field. Hence, seek some helps to those who might actually know to approach this problem. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 13:53:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/python-pyautogui-automate-sap-log-on-failed-to-do-injection/m-p/12684379#M2017207</guid>
      <dc:creator>usertest-123</dc:creator>
      <dc:date>2023-01-12T13:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: python pyautogui automate SAP Log On : Failed to do Injection.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/python-pyautogui-automate-sap-log-on-failed-to-do-injection/m-p/12684380#M2017208</link>
      <description>&lt;P&gt;Thank you for visiting SAP Community to get answers to your questions. Since this is your first question, I recommend that you familiarize yourself with: &lt;A href="https://community.sap.com/resources/questions-and-answers" target="test_blank"&gt;https://community.sap.com/resources/questions-and-answers&lt;/A&gt;, as the overview provides tips for preparing questions that draw responses from our members. &lt;/P&gt;&lt;P&gt;Should you wish, you can revise your question by selecting Actions, then Edit. &lt;/P&gt;&lt;P&gt;By adding a picture to your profile you encourage readers to respond: &lt;A href="https://developers.sap.com/tutorials/community-profile.html" target="test_blank"&gt;https://developers.sap.com/tutorials/community-profile.html&lt;/A&gt;.                                 &lt;BR /&gt;&lt;BR /&gt;Questions on how to draw responses from members? Check out this discussion on how to improve questions. &lt;A href="https://groups.community.sap.com/t5/welcome-corner-discussions/advice-from-sap-champions-questions-and-answers/m-p/123609/thread-id/1094" target="test_blank"&gt;https://groups.community.sap.com/t5/welcome-corner-discussions/advice-from-sap-champions-questions-and-answers/m-p/123609/thread-id/1094&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 13:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/python-pyautogui-automate-sap-log-on-failed-to-do-injection/m-p/12684380#M2017208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2023-01-12T13:54:44Z</dc:date>
    </item>
  </channel>
</rss>

