Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/11/2018 in all areas

  1. _Excel_RangeRead will get you #1, there is a nice example on how to use it in the help file. #2/3 = FileCopy() #4 = RunWait, or ShellExecuteWait
    2 points
  2. oHenry

    Android Automation

    Hi, I would like to share this simple project which aims to be a first approach in order to use AutoIt as scripting language for mobile automation (Android). This project is an ImperiusGeorge client for mobile test automation that support native Android apps. You can find more information at https://ohtejera.github.io/ImperiusAutoIt and here's the link to the project on Github: https://github.com/ohtejera/ImperiusAutoIt Best regards. Henry
    1 point
  3. Please Spare me for errors M totally Raw At programming stuffs So please forgive me Coming to udf Why was it required: Udf Already Available had to start with an extension and ws a bit tricky to be used also it was a bit obsolute What Are Functionalities of new udf: not much but a better way of interacting and userfriendliness, using external exe which can workaround with many other browsers Requirements: Chromedriver.exe(available freely)(Chrome)(Please Use version 2.28 as further versions/Previous versions sometime create problems) Geckodriver.exe(available freely)(Mozilla FF)There are some problems with this version m working to resolve same and make udf work with both browsers JSON UDF Browserudf.au3 Example Script For facebook Login Quite Simple to use #Include <browserudf.au3> $id=Browser_Setings(9515,"D:\Desktop\Vinfur\chromedriver.exe") $session=Browser_create_session() Browser_openurl($session,"https://www.facebook.com/") $element=Browser_getelement($session,"name","email") browser_setelement($session,$element,"Username type here") $element=Browser_getelement($session,"id","pass") browser_setelement($session,$element,"Password") $element=Browser_getelement($session,"id","u_0_r") browser_actions_click($session,$element) Browser_Setings_close($id) I Know There are thousands of bugs so please go on correcting me so that i will improve and also udf And Also Sorry that i didnt make any error checking mechanism for any function but as i couldnt get all errors listed/documented anywhere so i will update it as we go ahead and one more thanks to
    1 point
  4. I'm sorry, I am confused. You state you are running in VMware workstation, but you reference ESXi, which is a vSphere product. Have you created an embedded ESXi host in Workstation? If so to what end? And do you understand you are not going to be able to remote to a share on ESXi as you would a windows box, you would need to use esxcli or putty?
    1 point
  5. The purpose of the wrapper functions is first and foremost to make UI Automation as easy as possible, avoiding advanced functions like ObjCreateInterface. This function seems to be an insurmountable barrier for 99.99% of all AutoIt users. Not only in connection with UI Automation but generally. The wrapper functions contains a lot of code to make it easy and to implement as much functionality as possible. As usual you'll get nothing for free. The cost here is especially the speed. Once you've got the wrapper functions to work, you can optimize the speed by using the UI Automation objects and methods directly (without using the wrapper functions). See some of my examples for details. The example above in post #617 can probably be optimized to about 200 milliseconds.
    1 point
  6. Jos

    /ErrorStdOut

    This is the second guessing post without understanding the issue, Maybe hold off until it is clear there actually is an error? Jos
    1 point
  7. XaelloNegative

    /ErrorStdOut

    Im guessing this is in relation with a file location or a missing parameter perhaps? Anyways, if you would be so kind to post your script to further check. Also, for the mean time, do check https://www.autoitscript.com/autoit3/docs/intro/running.htm ~XN~
    1 point
  8. @n3wbie Thanks for your help. I was able to get it working with Chrome by passing the correct information in the init session request.
    1 point
  9. That's a peculiar need indeed. Then previous codes won't work as expected. This shoud work and still run fast: Local $hTimer = TimerInit() Local $nFile = @ScriptDir & "\new.csv" FileDelete($nFile) Local $sText = FileRead(@ScriptDir & "\data.tsv") $sText = StringReplace($sText, "\N", "", 0, $STR_NOCASESENSEBASIC) FileWrite($nFile, StringReplace($sText, @TAB, ",", 0, $STR_NOCASESENSEBASIC)) Local $fDiff = TimerDiff($hTimer) MsgBox("Finito","Time: ",_Convert($fDiff)) Func _Convert($ms) Local $day, $hour, $min, $sec _TicksToTime($ms, $hour, $min, $sec) If $hour > 24 Then $day = $hour/24 $hour = Mod($hour, 24) EndIf Return StringFormat("DAY:%02i,HOUR:%02i,MIN:%02i,SEC:%02i", $day, $hour, $min, $sec) EndFunc
    1 point
  10. Ya sure ...give me some time... I will share soon... Starting payload at session start has w3c in chromedriver capabilaities dictionary... I will share you exact payload or exact word in some time... I need to find my old backups... If i dont find them i will figure out and surely send
    1 point
  11. Probably permissions. Try deleting the mapping, and re-adding as an admin user on the server hosting the share.
    1 point
  12. you have a nice pseudo code going. now develop each line into AutoIt code by using the included Help file. The Help file has MANY examples you can just click on the links to load the code into the SciTe editor so you can run them. that is the best way for me to learn. read the help file, walk through the examples. Feel free to post your script so others can look at it and comment as well. Thanks. If you post your script, please use the Code Tags <> and paste code in there. It will be readable that way.
    1 point
  13. You can't seriously expect this to be enough information for anybody to go on. Be exact and show us the Log generated when doing which steps. Jos
    1 point
  14. Hello. DllCall does not support String data type in the parameter field. It should be wstr or str. If you want to be the console output while you're using #RequireAdmin You need to run SciTE with admin Right. right click over ScITE icon Run as Admin... Also make sure If dll use 'stdcall' or 'cdecl' calling method... Saludos
    1 point
  15. From the help file: True = 1, False = 0. So using something like: Consolewrite("x64 = " & @AutoItX64 & @CRLF) would inform you whether you're running in x64, which is required if you're calling a 64-bit dll. But from your comments, I gather you're calling a 32-bit dll from a regular script running in 32-bit (the default, unless you've explicitly set it up otherwise). Find "This PC" in your file manager, right-click, select "Properties", then look under "System Type". To run AutoIt scripts in x64, you need a 64bit processor, a 64 bit operating system, and that directive I mentioned in my previous post. If you're just calling the 32-bit dll, processor and OS can be either 32 or 64 bit.
    1 point
  16. With selenium 3 and webdriver around by major browsers I was playing around with some REST services Now I am wondering whats best to start with to do it from AutoIT. WinHTTP.au3 or maybe other suggestions? Examples 1. Installed Microsoft EDGE webdriver 2. run it Listening on http://localhost:17556/ 3. Validating it by GET: http://localhost:17556/status RAW: GET /status HTTP/1.1 Host: localhost:17556 Cache-Control: no-cache JSON Response: {"sessionId":"","status":0,"value":{"build":{"version":"10.0.14393.0"},"os":{"arch":"x86","name":"Windows 10","version":"10.0"}}} 4. Start a new Edge Session with POST http://localhost:17556/session POST /session HTTP/1.1 Host: localhost:17556 Content-Type: application/json Cache-Control: no-cache Postman-Token: 218239ae-821e-3a48-29bd-1898606b1529 {     "desiredCapabilities": {     },     "requiredCapabilities": {} } JSON response {"sessionId":"CD8C9B0D-FEAF-4A93-BF0D-E43C00BDDA8C","status":0,"value":{"browserName":"MicrosoftEdge","browserVersion":"38.14393.0.0","platformName":"windows","platformVersion":"10","takesElementScreenshot":true,"takesScreenshot":true,"acceptSslCerts":true,"applicationCacheEnabled":true,"locationContextEnabled":true,"webStorageEnabled":true,"pageLoadStrategy":"normal"}} 5. Call a lot of other nice stuff thru webdriver (available for even mobile phone browsers) https://w3c.github.io/webdriver/webdriver-spec.html
    1 point
  17. OK, I tried this, and it works great! Man, thanks for pointing me in the right direction. I was not aware of how to do this. So, for the benefit of those who might read this later, wondering how to do something similar, here is what I did: o Open Array.au3 and save as Array_Custom.au3. o Open Array_Custom.au3 for editing. o Delete all functions except _ArrayDisplay(). o Rename _ArrayDisplay() to _ArrayDisplayCustom(). o Customize the function with your own code. o Save and close In the script that will use the custom function: o Add #Include <Array_Custom.au3> o OK to keep #Include <Array.au3> as well. o Use _ArrayDisplayCustom() instead of _ArrayDisplay where you want to use the custom function. To add column names for a specific script, see earlier post for before/after code. Thanks very much for your help, PSaltyDS. There is so much to learn, and this really helped me. Dick
    1 point
×
×
  • Create New...