Jump to content

CarlFerrer

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by CarlFerrer

  1. Thanks, Water. Helpful! What can the problem be in this code? After many attempts cannot see the problem. ERROR INFO: >Running:(3.3.14.5):C:\Program Files (x86)\AutoIt3\autoit3.exe "C:\Users\cferrer\Desktop\login_abs_preprod_2.au3" --> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop --> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_ClientDisconnected (-2147023179, Browser has been deleted prior to operation.) --> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_InvalidObjectType () "C:\Program Files (x86)\AutoIt3\Include\IE.au3" (930) : ==> The requested action with this object has failed.: Local $oCol = $oObject.document.forms.item($sName) Local $oCol = $oObject^ ERROR ->12:49:09 AutoIt3.exe ended.rc:1 +>12:49:09 AutoIt3Wrapper Finished. >Exit code: 1 Time: 12.31 CODE: ; Initialize variables Local $user_name = "testmx1_ms" Local $password = "P@ssw0rd123" ; Functions Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc ; Libraries #include <IE.au3> ; Connect to ABS Preprod site Local $oIE = _IECreate("https://preprod.rapps.xyz.internal.acan.local") Sleep(5000) ; Wait for the site to load _IELoadWait($oIE) ; Wait for 5 seconds Sleep(5000) ; Enter user name and password Local $oForm = _IEFormGetObjByName($oIE, "form insertPoint credentialform") Local $oText = _IEFormElementGetObjByName($oForm, "username") _IEFormElementSetValue($oText, $user_name)
  2. Hi Water, I like the idea to use IE UDF which I will do. At least I am able to open the main site. Now, my challenge comes with identifying the properties of the field in this case for user name and password. Are you aware of a spy or recorder that can generate IE UDF? Thanks again Carl
  3. Yes, I will do so. Meanwhile, I'd like to investigate IE UDF or the webdriver. Are these components part of the latest version of Autoit? Could you provide a bit more detail? Appreciate it, thanks!
  4. My understanding is that, middleware allows portal and webservices. Maybe this can be an option to test?
  5. Thanks, Water. The access to the tool is really via Citrix (web). Once in, the client application is desktop, built using Java FX. What is your suggestion here?
  6. Hello folks! Using the AutoIT recorder a few weeks ago, I saw pieces of code like these below. Today, I am trying to recreate a new script but do not get this code below? What could be the reason? Thx! --- #include <IE.au3> #region --- Internal functions Au3Recorder Start --- Func _Au3RecordSetup() Opt('WinWaitDelay',100) Opt('WinDetectHiddenText',1) Opt('MouseCoordMode',0) Local $aResult = DllCall('User32.dll', 'int', 'GetKeyboardLayoutNameW', 'wstr', '') If $aResult[1] <> '00000409' Then MsgBox(64, 'Warning', 'Recording has been done under a different Keyboard layout' & @CRLF & '(00000409->' & $aResult[1] & ')') EndIf EndFunc Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc _AU3RecordSetup() ;Connect to ABS Preprod site Local $oIE = _IECreate("https://preprod....", 1) --
  7. Hello there! I have started to automate an app (mostly windows/desktop) and am wondering what is the best way to build test scripts avoiding analog code. That is, avoiding mouse movements, coordinates, etc. I really would want to go for the object recognition way of automating! Here is a snippet of code I recorded with the Au3record program, which I like to avoid as much as possible. Thanks in advance for your time. CarlF --- _WinWaitActivate("Citrix Receiver - Internet Explorer","Address Combo Contro") ;Maximize WinSetState("Citrix Receiver - Internet Explorer","",@SW_MAXIMIZE) ;_WinWaitActivate("ABS-Core TEST <on DTMLA93> - \\Remote","") ;MouseClick("left",744,14,1) MouseClick("left",542,89,1) MouseClick("left",388,282,1) _WinWaitActivate("Login - \\Remote","") MouseClick("left",34,115,1) MouseClick("left",413,467,1) _WinWaitActivate("ABS-Core TEST <on DTMLA93> - \\Remote","") MouseClick("left",52,123,1)
  8. Thanks, Water. That worked.
  9. Hello folks! I am trying to open a as400 session but no luck. Here is my code. Example() Func Example() ; Run Notepad with the window maximized. Run("C:\Program Files\IBM\Client Access\Emulator\Private\iSynergy.ws", "", @SW_SHOWMAXIMIZED) ; Wait for 4 seconds. Sleep(4000) EndFunc ;==>Example
  10. Thanks, SadBunny! Modified as suggested. No syntax error at this time, but still don't see my result. Local $iRc = _RunDos("Bcompare.exe @""C:\Users\Carlos\Desktop\MCAP_test_auto\autoit\cf_script.txt"" ""C:\Users\Carlos\Desktop\MCAP_test_auto\autoit\subser1_1.txt"" ""C:\Users\Carlos\Desktop\MCAP_test_auto\autoit\subser1_2.txt"" ""C:\Users\Carlos\Desktop\MCAP_test_auto\autoit\cf_report.txt""") When I tried this below in DOS, it works: Bcompare.exe @"C:\Users\Carlos\Desktop\MCAP_test_auto\autoit\cf_script.txt" "C:\Users\Carlos\Desktop\MCAP_test_auto\autoit\subser1_1.txt" "C:\Users\Carlos\Desktop\MCAP_test_auto\autoit\subser1_2.txt" "C:\Users\Carlos\Desktop\MCAP_test_auto\autoit\cf_report.txt"
  11. Good day, I am trying to use AutoIt to automate file comparison and am using the code below. BCCompare.exe is for Beyond Compare application. This stops right at the M (in red), with a syntax error. What can be the issue? #include <Process.au3> Local $iRc = _RunDos("BCompare.exe @"My Script.txt" "My File.txt" "Your File.txt" "My Report.txt"")
×
×
  • Create New...