@happybara
It's functioning perfectly on my system. Please take a look at the code below to see how it operates for me.
I attempted to click the reply button on this webpage and then copied the JavaScript path from the browser's inspect tool. After pasting the code into the PAD JavaScript action, it worked flawlessly for me.
Flow screenshot:

Code:
WebAutomation.LaunchChrome.LaunchChrome Url: $fx'https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Run-JavaScript-function-on-web-page-not-executing/m-p/2660450#M38273' WindowState: WebAutomation.BrowserWindowState.Maximized ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: $fx'=60' Timeout: $fx'=60' PiPUserDataFolderMode: WebAutomation.PiPUserDataFolderModeEnum.AutomaticProfile BrowserInstance=> Browser
WebAutomation.ExecuteJavascript BrowserInstance: $fx'=Browser' Javascript: $fx'function ExecuteScript() {
document.querySelector("#link_27").click();
}' Result=> Result
Thanks,
Deenuji Loganathan
🤖 Automation Evangelist
Deenuji - Follow me on LinkedIn
-------------------------------------------------------------------------------------------------------------
If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🌟