Skip to content

Commit 0a26982

Browse files
harsha509gryznar
authored andcommitted
[JS] Enables diagnostic logging for Safari
1 parent 9dcccd4 commit 0a26982

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

javascript/node/selenium-webdriver/safari.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,19 @@ class Options extends Capabilities {
7878
this.options_[TECHNOLOGY_PREVIEW_OPTIONS_KEY] = !!useTechnologyPreview
7979
return this
8080
}
81+
82+
/**
83+
* Enables diagnostic logging for Safari.
84+
*
85+
* This method sets the `safari:diagnose` option to `true` in the current configuration.
86+
* It is used to enable additional logging or diagnostic features specific to Safari.
87+
*
88+
* @returns {Options} Returns the current instance
89+
*/
90+
enableLogging() {
91+
this.set('safari:diagnose', true)
92+
return this
93+
}
8194
}
8295

8396
/**

0 commit comments

Comments
 (0)