-
-
Notifications
You must be signed in to change notification settings - Fork 130
Better message for creating session with W3C #331
Conversation
lib/basedriver/commands/session.js
Outdated
@@ -4,6 +4,7 @@ import log from '../logger'; | |||
import { errors } from '../../protocol'; | |||
import UUID from 'uuid-js'; | |||
import { processCapabilities } from '../capabilities'; | |||
import prettyJson from 'prettyjson'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the point in using third-party dependency? we can still add indentation parameters to JSON.stringify call
Please find the few different ways I tried for making W3C capabilities more readable and showing in JSON format, let me know which look fine.
[debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
OutPut in Appium Server log:- Also tried with inspectObject method from (https://github.com/appium/appium/blob/master/lib/utils.js) [BaseDriver] firstMatch: { Output [debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided |
Check the documentation on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify The function also has the second and the third ( |
Thanks, Mykola, used below code, please let me know if this is fine Output: |
what do you think about |
That option looks good to me. |
Thank you @Siddh010 ! |
wow!! Thanks to every one for guidance and help. @dpgraham, @mykola-mokhnach, @imurchie |
Create PR for [appium/appium/issues/12766]
Better message for creating session with W3C