Skip to content

Commit

Permalink
[JS] Enables diagnostic logging for Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
harsha509 committed Jan 13, 2025
1 parent 62c3daf commit 49ee40b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions javascript/node/selenium-webdriver/safari.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,19 @@ class Options extends Capabilities {
this.options_[TECHNOLOGY_PREVIEW_OPTIONS_KEY] = !!useTechnologyPreview
return this
}

/**
* Enables diagnostic logging for Safari.
*
* This method sets the `safari:diagnose` option to `true` in the current configuration.
* It is used to enable additional logging or diagnostic features specific to Safari.
*
* @returns {Options} Returns the current instance
*/
enableLogging() {
this.set('safari:diagnose', true)
return this
}
}

/**
Expand Down

0 comments on commit 49ee40b

Please sign in to comment.