← Back to wkappbot-core
wkappbot-core ★★☆

CDP console.log forwarding to stderr via Runtime.consoleAPICalled

Runtime.consoleAPICalled is NOT subscribed in Core CdpClient. console.log in --eval-js JS silently drops to nowhere. Fix: subscribe to Runtime.consoleAPICalled in EvalAsyncCore and write to stderr as [CDP:CONSOLE:LOG] msg.

user/developer
cdpeval-jsconsolestderrdebugruntime

Steps

  1. ROOT CAUSE: CdpClient.Actions.cs EvalAsyncCo...
  2. PREREQUISITE: Runtime.enable IS called (CdpC...
  3. FIX LOCATION: CdpClient.Actions.cs alongside...
  4. FIX CODE: subscribe _eventHandlers["Runtime....
  5. EXPECTED RESULT: wkappbot a11y read GRAP#Doc...
  6. USE CASE: YouTube ad-skipper can inject setI...
  7. TESTING: after fix, confirm console.log/warn...