longvh211 / Chromium-Automation-with-CDP-for-VBA

A method to directly automate Chromium-based web browsers, such as Chrome, Edge, and Firefox, using VBA for Office applications by following the Chrome DevTools Protocol framework.
MIT License
45 stars 6 forks source link

printMsg Handler does not work when the file is on Sharepoint or One Drive #23

Open Vir4lPl47ypu5 opened 10 months ago

Vir4lPl47ypu5 commented 10 months ago

I am not certain if this affects anything else in your code, but when a file is accessed through One Drive or Sharepoint it causes an error with opening the log file for messages. The directory path for the App as accessed by Sharepoint uses a URL format:

"https://sharepoint.com/sites/Sitename/Subsite"

The directory you append, "\Logs\" does not match the format and gives and error: Bad file name or number.

longvh211 commented 10 months ago

Hi Kevin, this is an interesting issue. Running from SharePoint might affect other codes though I don't expect any issues too major to be tweaked. Do keep us posted if you find anything else.