Jump to content

Redd500

Members
  • Posts

    15
  • Joined

  • Last visited

Everything posted by Redd500

  1. @Danp2 This is because the '>log file' silences geckodriver and outputs it into a log file rather than into the console. I got the error through running the code after compiling it into a .exe using Aut2Exe and its /console flag and then running the .exe through the command prompt. I generally use this for my own testing purposes so I can see where things go wrong using ConsoleWrite() or to view any errors that get written. Anyways, I managed to get it running using 2 batch files to make it run asynchronously with the log file being created, because I need to run it in Windows Task Scheduler for full automation. Thanks for the suggestion, it got me what I needed. Shame I couldn't use AutoIt though.
  2. Alright, so I've been working with geckodriver and Firefox now, and I need to submit a bug to them about a very specific case that I'm dealing with. In order to get the trace log to them, I need to push geckodriver's output to a .log file, but for some reason AutoIt keeps screwing it up. The code I run is as follows: _WD_Option("Driver", "C:\Path\To\geckodriver.exe") _WD_Option("Port", 4444) _WD_Option("DriverParams", '-vv >C:\Path\To\geckodriver.log') Local $oId = _WD_Startup() Which then gives me the error: error: Found argument '>geckodriver.log' which wasn't expected, or isn't valid in this context USAGE: geckodriver.exe -v For more information try --help This is a problem because if I run the command that's being generated in a cmd window myself, then it runs the geckodriver.exe fine and outputs to the log file as I specified. This might not actually be a problem with your UDF, but with AutoIt itself because I only get this problem using AutoIt's Run() function.
  3. Okay, so I'm guessing I should attempt Firefox next? IE doesn't work the way I need it to in headless, either, so I'm just going to attempt Firefox.
  4. Okay, so I realized the errors were mostly from the cmd window and not Scite because I don't use Scite I use Notepad++. #include <wd_core.au3> #include <wd_helper.au3> ;#################### ;Opening Chrome ;#################### _WD_Option("Driver", "C:\Users\Intern\Downloads\chromedriver_win32\chromedriver.exe") _WD_Option("Port", 9515) Local $oId = _WD_Startup() Local $oChrome = _WD_CreateSession('{"capabilities": {"alwaysMatch": {"chromeOptions": {"w3c": true, "args": ["--headless", "--allow-running-insecure-content"] }}}}') ;Start navigating to the login page _WD_Navigate($oChrome, 'https://www-01.ibm.com/software/passportadvantage/') _WD_LinkClickByText($oChrome, "Passport Advantage Online") _WD_LinkClickByText($oChrome, "Passport Advantage for Business Partners") _WD_LinkClickByText($oChrome, "Reseller sign in") This runs 100% fine if I don't do it headlessly. _WDStartup: OS: WIN_10 WIN32_NT 16299 _WDStartup: AutoIt: 3.3.14.3 _WDStartup: WD.au3: 0.1.0.9 _WDStartup: Driver: C:\PathTo\chromedriver_win32\chromedriver.exe _WDStartup: Params: _WDStartup: Port: 9515 __WD_Post: URL=HTTP://127.0.0.1:9515/session; $sData={"capabilities": {"alwaysMatch": {"chromeOptions": {"w3c": true, "args": ["--headless", "--allow-running-insecure-content"] }}}} __WD_Post: StatusCode=200; ResponseText={"value":{"capabilities":{"acceptInsecureCerts":false,"acceptSslCerts":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"browserName":"chrome","chrome":{"chromedriverVersion":"2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb)","userDataDir":"C:\\Users\\Intern\\AppData\\Local\\Temp\\scoped_dir12052_12441"},"cssSelectorsEnabled":true,"databaseEnabled":false,"handlesAlerts":true,"hasTouchScreen":false,"javascriptEnabled":true,"locationContextEnabled":true,"mobileEmulationEnabled":false,"nativeEvents":true,"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platform":"Windows NT","rotatable":false,"setWindowRect":true,"takesHeapSnapshot":true,"takesScreenshot":true,"unexpectedAlertBehaviour":"","version":"66.0.3359.117","webStorageEnabled":true},"sessionId":"a1fb3c4c09bc2f518c2f85665051efd0"}} _WD_CreateSession: {"value":{"capabilities":{"acceptInsecureCerts":false,"acceptSslCerts":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"browserName":"chrome","chrome":{"chromedriverVersion":"2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb)","userDataDir":"C:\\Users\\Intern\\AppData\\Local\\Temp\\scoped_dir12052_12441"},"cssSelectorsEnabled":true,"databaseEnabled":false,"handlesAlerts":true,"hasTouchScreen":false,"javascriptEnabled":true,"locationContextEnabled":true,"mobileEmulationEnabled":false,"nativeEvents":true,"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platform":"Windows NT","rotatable":false,"setWindowRect":true,"takesHeapSnapshot":true,"takesScreenshot":true,"unexpectedAlertBehaviour":"","version":"66.0.3359.117","webStorageEnabled":true},"sessionId":"a1fb3c4c09bc2f518c2f85665051efd0"}} __WD_Post: URL=HTTP://127.0.0.1:9515/session/a1fb3c4c09bc2f518c2f85665051efd0/url; $sData={"url":"https://www-01.ibm.com/software/passportadvantage/"} __WD_Post: StatusCode=200; ResponseText={"value":null} _WD_Navigate: {"value":null} __WD_Post: URL=HTTP://127.0.0.1:9515/session/a1fb3c4c09bc2f518c2f85665051efd0/element; $sData={"using":"partial link text","value":"Passport Advantage Online"} __WD_Post: StatusCode=404; ResponseText={"value":{"error":"no such element","message":"Unable to locate element{\"method\"\"partial link text\",\"selector\"\"Passport Advantage Online\"}(Session infoheadless chrome=66.0.3359.117)","stacktrace":"Backtrace:\n\t(No symbol) [0x00FCE8F0]\n\t(No symbol) [0x00FB7CCD]\n\t(No symbol) [0x00F86D73]\n\t(No symbol) [0x00F55A6E]\n\t(No symbol) [0x00F6F760]\n\t(No symbol) [0x00F66D60]\n\t(No symbol) [0x00F6E35B]\n\t(No symbol) [0x00F66CEB]\n\t(No symbol) [0x00F50D9E]\n\t(No symbol) [0x00F52314]\n\t(No symbol) [0x00F522BA]\n\t(No symbol) [0x00FF38D6]\n\t(No symbol) [0x00FD2AB3]\n\t(No symbol) [0x00FA08C6]\n\t(No symbol) [0x00FA0BF3]\n\t(No symbol) [0x00FA0D03]\n\t(No symbol) [0x00FD4B47]\n\t(No symbol) [0x00FA060F]\n\t(No symbol) [0x00FA177E]\n\t(No symbol) [0x00F9D59B]\n\t(No symbol) [0x00F9D6F5]\n\t(No symbol) [0x00FB000B]\n\tBaseThreadInitThunk [0x76AE8654+36]\n\tRtlGetAppContainerNamedObjectPath [0x77724B17+311]\n\tRtlGetAppContainerNamedObjectPath [0x77724AE7+263]\n"}} _WD_FindElement: {"value":{"error":"no such element","message":"Unable to locate element{\"method\"\"partial link text\",\"selector\"\"Passport Advantage Online\"}(Session infoheadless chrome=66.0.3359.117)","stacktrace":"Backtrace:\n\t(No symbol) [0x00FCE8F0]\n\t(No symbol) [0x00FB7CCD]\n\t(No symbol) [0x00F86D73]\n\t(No symbol) [0x00F55A6E]\n\t(No symbol) [0x00F6F760]\n\t(No symbol) [0x00F66D60]\n\t(No symbol) [0x00F6E35B]\n\t(No symbol) [0x00F66CEB]\n\t(No symbol) [0x00F50D9E]\n\t(No symbol) [0x00F52314]\n\t(No symbol) [0x00F522BA]\n\t(No symbol) [0x00FF38D6]\n\t(No symbol) [0x00FD2AB3]\n\t(No symbol) [0x00FA08C6]\n\t(No symbol) [0x00FA0BF3]\n\t(No symbol) [0x00FA0D03]\n\t(No symbol) [0x00FD4B47]\n\t(No symbol) [0x00FA060F]\n\t(No symbol) [0x00FA177E]\n\t(No symbol) [0x00F9D59B]\n\t(No symbol) [0x00F9D6F5]\n\t(No symbol) [0x00FB000B]\n\tBaseThreadInitThunk [0x76AE8654+36]\n\tRtlGetAppContainerNamedObjectPath [0x77724B17+311]\n\tRtlGetAppContainerNamedObjectPath [0x77724AE7+263]\n"}} _WD_FindElement ==> No match: HTTP status = 404 _WD_LinkClickByText ==> No match __WD_Post: URL=HTTP://127.0.0.1:9515/session/a1fb3c4c09bc2f518c2f85665051efd0/element; $sData={"using":"partial link text","value":"Passport Advantage for Business Partners"} __WD_Post: StatusCode=404; ResponseText={"value":{"error":"no such element","message":"Unable to locate element{\"method\"\"partial link text\",\"selector\"\"Passport Advantage for Business Partners\"}(Session infoheadless chrome=66.0.3359.117)","stacktrace":"Backtrace:\n\t(No symbol) [0x00FCE8F0]\n\t(No symbol) [0x00FB7CCD]\n\t(No symbol) [0x00F86D73]\n\t(No symbol) [0x00F55A6E]\n\t(No symbol) [0x00F6F760]\n\t(No symbol) [0x00F66D60]\n\t(No symbol) [0x00F6E35B]\n\t(No symbol) [0x00F66CEB]\n\t(No symbol) [0x00F50D9E]\n\t(No symbol) [0x00F52314]\n\t(No symbol) [0x00F522BA]\n\t(No symbol) [0x00FF38D6]\n\t(No symbol) [0x00FD2AB3]\n\t(No symbol) [0x00FA08C6]\n\t(No symbol) [0x00FA0BF3]\n\t(No symbol) [0x00FA0D03]\n\t(No symbol) [0x00FD4B47]\n\t(No symbol) [0x00FA060F]\n\t(No symbol) [0x00FA177E]\n\t(No symbol) [0x00F9D59B]\n\t(No symbol) [0x00F9D6F5]\n\t(No symbol) [0x00FB000B]\n\tBaseThreadInitThunk [0x76AE8654+36]\n\tRtlGetAppContainerNamedObjectPath [0x77724B17+311]\n\tRtlGetAppContainerNamedObjectPath [0x77724AE7+263]\n"}} _WD_FindElement: {"value":{"error":"no such element","message":"Unable to locate element{\"method\"\"partial link text\",\"selector\"\"Passport Advantage for Business Partners\"}(Session infoheadless chrome=66.0.3359.117)","stacktrace":"Backtrace:\n\t(No symbol) [0x00FCE8F0]\n\t(No symbol) [0x00FB7CCD]\n\t(No symbol) [0x00F86D73]\n\t(No symbol) [0x00F55A6E]\n\t(No symbol) [0x00F6F760]\n\t(No symbol) [0x00F66D60]\n\t(No symbol) [0x00F6E35B]\n\t(No symbol) [0x00F66CEB]\n\t(No symbol) [0x00F50D9E]\n\t(No symbol) [0x00F52314]\n\t(No symbol) [0x00F522BA]\n\t(No symbol) [0x00FF38D6]\n\t(No symbol) [0x00FD2AB3]\n\t(No symbol) [0x00FA08C6]\n\t(No symbol) [0x00FA0BF3]\n\t(No symbol) [0x00FA0D03]\n\t(No symbol) [0x00FD4B47]\n\t(No symbol) [0x00FA060F]\n\t(No symbol) [0x00FA177E]\n\t(No symbol) [0x00F9D59B]\n\t(No symbol) [0x00F9D6F5]\n\t(No symbol) [0x00FB000B]\n\tBaseThreadInitThunk [0x76AE8654+36]\n\tRtlGetAppContainerNamedObjectPath [0x77724B17+311]\n\tRtlGetAppContainerNamedObjectPath [0x77724AE7+263]\n"}} _WD_FindElement ==> No match: HTTP status = 404 _WD_LinkClickByText ==> No match __WD_Post: URL=HTTP://127.0.0.1:9515/session/a1fb3c4c09bc2f518c2f85665051efd0/element; $sData={"using":"partial link text","value":"Reseller sign in"} __WD_Post: StatusCode=404; ResponseText={"value":{"error":"no such element","message":"Unable to locate element{\"method\"\"partial link text\",\"selector\"\"Reseller sign in\"}(Session infoheadless chrome=66.0.3359.117)","stacktrace":"Backtrace:\n\t(No symbol) [0x00FCE8F0]\n\t(No symbol) [0x00FB7CCD]\n\t(No symbol) [0x00F86D73]\n\t(No symbol) [0x00F55A6E]\n\t(No symbol) [0x00F6F760]\n\t(No symbol) [0x00F66D60]\n\t(No symbol) [0x00F6E35B]\n\t(No symbol) [0x00F66CEB]\n\t(No symbol) [0x00F50D9E]\n\t(No symbol) [0x00F52314]\n\t(No symbol) [0x00F522BA]\n\t(No symbol) [0x00FF38D6]\n\t(No symbol) [0x00FD2AB3]\n\t(No symbol) [0x00FA08C6]\n\t(No symbol) [0x00FA0BF3]\n\t(No symbol) [0x00FA0D03]\n\t(No symbol) [0x00FD4B47]\n\t(No symbol) [0x00FA060F]\n\t(No symbol) [0x00FA177E]\n\t(No symbol) [0x00F9D59B]\n\t(No symbol) [0x00F9D6F5]\n\t(No symbol) [0x00FB000B]\n\tBaseThreadInitThunk [0x76AE8654+36]\n\tRtlGetAppContainerNamedObjectPath [0x77724B17+311]\n\tRtlGetAppContainerNamedObjectPath [0x77724AE7+263]\n"}} _WD_FindElement: {"value":{"error":"no such element","message":"Unable to locate element{\"method\"\"partial link text\",\"selector\"\"Reseller sign in\"}(Session infoheadless chrome=66.0.3359.117)","stacktrace":"Backtrace:\n\t(No symbol) [0x00FCE8F0]\n\t(No symbol) [0x00FB7CCD]\n\t(No symbol) [0x00F86D73]\n\t(No symbol) [0x00F55A6E]\n\t(No symbol) [0x00F6F760]\n\t(No symbol) [0x00F66D60]\n\t(No symbol) [0x00F6E35B]\n\t(No symbol) [0x00F66CEB]\n\t(No symbol) [0x00F50D9E]\n\t(No symbol) [0x00F52314]\n\t(No symbol) [0x00F522BA]\n\t(No symbol) [0x00FF38D6]\n\t(No symbol) [0x00FD2AB3]\n\t(No symbol) [0x00FA08C6]\n\t(No symbol) [0x00FA0BF3]\n\t(No symbol) [0x00FA0D03]\n\t(No symbol) [0x00FD4B47]\n\t(No symbol) [0x00FA060F]\n\t(No symbol) [0x00FA177E]\n\t(No symbol) [0x00F9D59B]\n\t(No symbol) [0x00F9D6F5]\n\t(No symbol) [0x00FB000B]\n\tBaseThreadInitThunk [0x76AE8654+36]\n\tRtlGetAppContainerNamedObjectPath [0x77724B17+311]\n\tRtlGetAppContainerNamedObjectPath [0x77724AE7+263]\n"}} _WD_FindElement ==> No match: HTTP status = 404 _WD_LinkClickByText ==> No match >Exit code: 0 Time: 7.552 In the cmd window, I get: Starting ChromeDriver 2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb) on port 9515 Only local connections are allowed. [0430/174035.091:ERROR:gpu_process_transport_factory.cc(1007)] Lost UI shared context. DevTools listening on ws://127.0.0.1:12423/devtools/browser/6c85843e-d682-460f-811f-ad5f11c18883 [0430/174037.348:INFO:CONSOLE(2)] "Uncaught ReferenceError: dojo is not defined", source: https://www-01.ibm.com/software/main/js/swg-global.js (2) [0430/174037.377:INFO:CONSOLE(0)] "Mixed Content: The page at 'https://www-01.ibm.com/software/passportadvantage/' was loaded over HTTPS, but requested an insecure script 'http://www.ibm.com/software/passportadvantage/fix_translate.js'. This request has been blocked; the content must be served over HTTPS.", source: https://www-01.ibm.com/software/passportadvantage/ (0) [0430/174037.620:INFO:CONSOLE(0)] "The SSL certificate used to load resources from https://idaas.iam.ibm.com will be distrusted in the future. Once distrusted, users will be prevented from loading these resources. See https://g.co/chrome/symantecpkicerts for more information.", source: https://www-01.ibm.com/software/passportadvantage/ (0) [0430/174038.812:INFO:CONSOLE(0)] "The SSL certificate used to load resources from https://aa.agkn.com will be distrusted in the future. Once distrusted, users will be prevented from loading these resources. See https://g.co/chrome/symantecpkicerts for more information.", source: https://bcp.crwdcntrl.net/5/ct=y/c=10026/rand=800688350/pv=y/tp=IBMX/seg=IBMID%3ANo/seg=%23OpR%2383593%23digitalData%20%3A%20user%20%3A%20userInfo%20%3A%20registry_country_code%20%3A%20us/int=%23OpR%2377304%23digitalData%20%3A%20siteID%20%3A%20IBM_GlobalMarketing/int=%23OpR%2378616%23Site%20Visitor%20%3A%20IBM.com/int=%23OpR%2378749%23digitalData%20%3A%20bomboraTopics%20%3A%20Analytics%20Software/int=%23OpR%2378784%23digitalData%20%3A%20bomboraTopics%20%3A%20Security%20Solutions/int=%23OpR%2378785%23digitalData%20%3A%20bomboraTopics%20%3A%20Software%20Licensing/int=%23OpR%2378786%23digitalData%20%3A%20bomboraTopics%20%3A%20Software%20Requirements/int=%23OpR%2378787%23digitalData%20%3A%20bomboraTopics%20%3A%20Software%20as%20a%20Service%20(SaaS)/int=%23OpR%2380062%23IBM%20-%20All%20URL%20Visitors/int=%23OpR%2383413%23digitalData%20%3A%20nluKeywords%20%3A%20Help%20desk/dem=%23OpR%2377294%23digitalData%20%3A%20isIBMer%20%3A%200/dem=%23OpR%2377836%23digitalData%20%3A%20language%20%3A%20en-US/genp=%23OpR%2377458%23digitalData%20%3A%20gbt10%20%3A%20G0000/genp=%23OpR%2377460%23digitalData%20%3A%20gbt17%20%3A%20G17PA/ug=%23OpR%2378009%23https%3A%2F%2Fwww-01.ibm.com%2Fsoftware%2Fpassportadvantage%2F/ug=%23OpR%2381952%23https%3A%2F%2Fwww-01/rt=ifr (0) [0430/174042.811:INFO:CONSOLE(0)] "The SSL certificate used to load resources from https://uipglob.semasio.net will be distrusted in the future. Once distrusted, users will be prevented from loading these resources. See https://g.co/chrome/symantecpkicerts for more information.", source: https://pixel.mathtag.com/sync/iframe?mt_uuid=75e75ae7-85b3-4100-ba99-459642dd3316&no_iframe=1&mt_adid=171815&mt_lim=15 (0)
  5. @Danp2 It doesn't? I commented out the headless part of the code, so I can uncomment it real quick so it runs but fails. I also always use Aut2Exe for console writing. #include <wd_core.au3> #include <wd_helper.au3> ;#################### ;Opening Chrome ;#################### Local $oId = _WD_Startup() Local $oChrome = _WD_CreateSession('{"capabilities": {"alwaysMatch": {"chromeOptions": {"w3c": true, "args": ["--headless", "--allow-running-insecure-content"] }}}}') ;Start navigating to the login page _WD_Navigate($oChrome, 'https://www-01.ibm.com/software/passportadvantage/') I also have the following as my Global Variables (which I should maybe put into the script with _WD_Option() rather than editing wd_core.au3 directly). Global $_WD_DRIVER = "C:\PathTo\chromedriver_win32\chromedriver.exe" ; Path to web driver executable Global $_WD_DRIVER_PARAMS = "" ; Parameters to pass to web driver executable Global $_WD_BASE_URL = "HTTP://127.0.0.1" Global $_WD_PORT = 9515 ; Port used for web driver communication Global $_WD_OHTTP = ObjCreate("winhttp.winhttprequest.5.1") Global $_WD_HTTPRESULT ; Result of last WinHTTP request
  6. @Danp2 #include <wd_core.au3> #include <wd_helper.au3> ;#################### ;Opening Chrome ;#################### Local $oId = _WD_Startup() Local $oChrome = _WD_CreateSession('{"capabilities": {"alwaysMatch": {"chromeOptions": {"w3c": true}}}}');, "args": ["--headless", "--allow-running-insecure-content"] }}}}') ;Start navigating to the login page _WD_Navigate($oChrome, 'https://www-01.ibm.com/software/passportadvantage/')
  7. I'm having a bit of a problem with using chromedriver headlessly. The sites I'm trying to go to are having Mixed Content problems, and I can't get chromedriver to start in a way that doesn't grind everything to a halt when the Mixed Content happens. Local $oChrome = _WD_CreateSession('{"capabilities": {"alwaysMatch": {"chromeOptions": {"w3c": true, "args": ["--headless", "--allow-running-insecure-content"] }}}}') Which then creates __WD_Posts like: __WD_Post: StatusCode=200; ResponseText={"value":{"capabilities":{"acceptInsecureCerts":false,"acceptSslCerts":false,"applicationCacheEnabled":false,"browserConnectionEnabled":false,"browserName":"chrome","chrome":{"chromedriverVersion":"2.38.552522 (437e6fbedfa8762dec75e2c5b3ddb86763dc9dcb)","userDataDir":"C:\\Users\\Intern\\AppData\\Local\\Temp\\scoped_dir16220_22809"},"cssSelectorsEnabled":true,"databaseEnabled":false,"handlesAlerts":true,"hasTouchScreen":false,"javascriptEnabled":true,"locationContextEnabled":true,"mobileEmulationEnabled":false,"nativeEvents":true,"networkConnectionEnabled":false,"pageLoadStrategy":"normal","platform":"Windows NT","rotatable":false,"setWindowRect":true,"takesHeapSnapshot":true,"takesScreenshot":true,"unexpectedAlertBehaviour":"","version":"66.0.3359.117","webStorageEnabled":true},"sessionId":"6d7fab266a0ca493d2f894c931ca620b"}}
  8. I guess with Jquery I can just use the href and then catch the file myself? Then I can actually use InetGet()?
  9. What's being passed to the cW function is the MouseEvent for the <a> element I clicked on and undefined. I don't think I can replicate that by calling it directly unfortunately.
  10. function cW(b, a) { CI(); var b = CG(b); if (b) { C9(b, a) } CJ(1); CE(); if (a) { setTimeout(a, cm_LinkClickDelayInterval) } else { if (cm_LinkClickDelay) { if (b) { setTimeout('document.location = "' + b.href + '"', cm_LinkClickDelayInterval); return false } else { return true } } } } I got this by pretty-printing the file and looking back at the event for the link.
  11. Alright, just wanted to make sure lol. Don't want to share stuff I'm not allowed to share, and I don't know where that line is so I tend to err on the side of caution. But yeah that's what the onclick event is for the link.
  12. Yep I found the click event and can copy and paste it, and it's all minimized onto one line that stretches across several pages if I were to paste it here. It also has this attached: // Licensed Materials - Property of IBM, eluminate.js (US Build # 4.21.99 Date/Time: 20180321-14:32), (C) Copyright IBM Corporation 2018. U.S. Government Users Restricted Rights: Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  13. Right now I have access to Chrome, as I only use IE on the remote server we're using for this script. But I did find what I think is the HTML code. <tr> <!-- country --> <td style="padding-top: 13px"> Software - United States </td> <!-- pricing --> <td class="ibm-ind-link"> <p><a class="ibm-download-link" href="DownloadCSV.do?*LOTS OF VARIOUS PROPERTIES GO HERE*">SRP/SVP</a></p> </td> <!-- date --> <td style="padding-top: 13px"> <p>17 Apr 2018</p> </td> <!-- approximate size --> <td style="padding-top: 13px"> <p>943.64 kb (.zip file) </p> </td> </tr> I also got some stuff from the Event Listeners for the link.
  14. Sure. The website is definitely not public facing, as the link to get there involves www-01.ibm.com followed by specific paths to get to what I need, and then I have to navigate to the login page and login with our company information to actually get to the download links needed. The link href is something like DownloadCSV.do?regionCode=XXX&fileCntryName=XXX etc. with a bunch of other properties included. The actual download link follows a format of "CountryMonthDayYear.zip". I don't know if I'm allowed to include the HTML unfortunately, but I can post how I find the link and click it: Local $tags = _IETagNameGetCollection($oIE, "tr") ;search for the download link and click it and wait. For $tag in $tags     $textValue = $tag.innerHTML     If StringInStr($textValue, "Software - United States") > 0 Then         Local $link = _IETagNameGetCollection($tag, "a", 0)         _IEAction($link, "click")         _IELoadWait($oIE)         If @error = 0 Then             ExitLoop         EndIf    EndIf Next The actual link doesn't have an id, name, or unique text I can use so instead I have to look through elements for specific text and then click the link within that element.
  15. So I'm currently writing a script to navigate a bunch of webpages to login and download a couple .zip files. It needs to run in Windows Task Scheduler while I am not logged in, so I don't have access to GUI stuff. It runs perfectly fine until it actually has to download the files, because the links you click to download the files aren't the actual files and instead generate or fetch the files from a separate server and download them as the browser would normally. Trying InetGet() hasn't worked because I'm assuming it needs direct access to the file from the URL provided, which I don't have. And simply automating a click like with _IEAction() won't work because that would just pull up the IE Download window which I can't access due to no GUI. I'm also assuming I don't have access to the server where the files are because these files are coming from IBM so they are probably securing it. The href is just a bunch of properties passed to the site to know what file is needed. I am at a loss and need some help.
×
×
  • Create New...