fix(stdio): keep Appium and WebDriver logs off JSON-RPC stdout - #493
fix(stdio): keep Appium and WebDriver logs off JSON-RPC stdout#493Mochxd wants to merge 2 commits into
Conversation
|
I dont know if it is the right way to solve the issue or something else but i am waiting the feedback.. |
ad3ace1 to
5309ffc
Compare
|
@KazuCocoa sorry for the force push :(( had some trouble pushing the branch and ended up squashing everything into one commit to get it through..the latest update should cover the programmatic stdio path ( |
|
The last one: [P2] Update already-created WDIO loggers for programmatic stdio By the time Please update all existing WDIO loggers when stdio is configured, or defer the WebDriver imports until after this configuration runs. A child-process regression test should start the core server with stdio, trigger a remote session, and assert that stdout contains only JSON-RPC. This could be valid. This PR may need to add |
Fixes #492.
Stdio MCP clients (Cursor included) treat stdout as JSON-RPC. Appium
infolines, XCUITest page source, and WebDriverELEMENTdumps were ending up on that stream, so the client failed to parse even when the tool itself succeeded.Pin npmlog to stderr, quiet the stdio CLI to
warnbefore startup, and create/attach WebDriver clients withlogLevel: warn.