Skip to content

Commit 49ee40b

Browse files
committed
[JS] Enables diagnostic logging for Safari
1 parent 62c3daf commit 49ee40b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

javascript/node/selenium-webdriver/safari.js

+13
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)