Thank you! I tried this and it does create a chromedriver.log file but it doesn't have much info in it, I think it's not working as expected.
My attempt based on your example:
Code: Select all
KillProcess>chromedriver.exe
KillProcess>chrome.exe
Let>TargetURL=https://www.tide.com
Let>CHROMEDRIVER_EXE=C:\ChromeForTesting\chromedriver.exe
Let>CHROMEDRIVER_PORT=10094
Let>CHROMEDRIVER_OPTIONS=--verbose,--log-file=C:\\ChromeForTesting\\chromedriver.log,--start-maximized --incognito %TargetURL%
Wait>0.1
ChromeStart>ChromeSessionID
ChromeExecute>ChromeSessionID,document.querySelector("#site-header > div.header-search-bar > div > div > div > form > div > input[type=search]").click()
**BREAKPOINT**
If I start chromedriver manually, I can see the full log of what happens in the chromedriver.log (quite different results in the log file than the first example):
Code: Select all
KillProcess>chromedriver.exe
KillProcess>chrome.exe
RunProgram>C:\ChromeForTesting\chromedriver.exe --verbose --log-path=C:\ChromeForTesting\chromedriver.log --port=10094
Let>TargetURL=https://www.tide.com
Let>CHROMEDRIVER_EXE=C:\ChromeForTesting\chromedriver.exe
Let>CHROMEDRIVER_PORT=10094
Let>CHROMEDRIVER_OPTIONS=--start-maximized,--incognito %TargetURL%
Wait>0.1
ChromeStart>ChromeSessionID
ChromeExecute>ChromeSessionID,document.querySelector("#site-header > div.header-search-bar > div > div > div > form > div > input[type=search]").click()
**BREAKPOINT**
For reference, I am using 15.0.21 Sept 2022 build of Macro Scheduler Pro and ChomeForTesting v116 from
https://googlechromelabs.github.io/chrome-for-testing/ (I believethe latest version will work the same).
My end goal here is to improve my process for logging that will show me the details if I have entered some invalid javascript statement with ChromeExecute>.
For instance, I attempted to use:
Code: Select all
ChromeExecute>SessionID,document.querySelector("#\\38 4190f63-5c16-4917-a103-e12847b3d1e3").click()
and I find in the tail of the chromedriver.log:
Code: Select all
"Failed to execute 'querySelector' on 'Document': '#\\u00038 4190f63-5c16-4917-a103-e12847b3d1e3' is not a valid selector.
and
Code: Select all
RESPONSE ExecuteScript ERROR invalid element state: Failed to execute 'querySelector' on 'Document': '#8 4190f63-5c16-4917-a103-e12847b3d1e3' is not a valid selector.
(note there is a unicode character in this last log statement between the # and the 8, which doesn't appear to be supported on this page)
Which tells me there are some unsupported characters, I am just not sure what the limits are.