MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / useTechnologyPreview

Function useTechnologyPreview

javascript/selenium-webdriver/safari.js:101–112  ·  view source on GitHub ↗

* @param {(Capabilities|Object )=} o The options object * @return {boolean}

(o)

Source from the content-addressed store, hash-verified

99 * @return {boolean}
100 */
101function useTechnologyPreview(o) {
102 if (o instanceof Capabilities) {
103 let options = o.get(OPTIONS_CAPABILITY_KEY)
104 return !!(options && options[TECHNOLOGY_PREVIEW_OPTIONS_KEY])
105 }
106
107 if (o && typeof o === 'object') {
108 return !!o[TECHNOLOGY_PREVIEW_OPTIONS_KEY]
109 }
110
111 return false
112}
113
114const SAFARIDRIVER_TECHNOLOGY_PREVIEW_EXE = '/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver'
115

Callers 1

createSessionMethod · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected