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)