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

Method setOpacity

javascript/selenium-webdriver/lib/color.js:66–68  ·  view source on GitHub ↗

* Sets opacity (alpha channel). * @param {number} alpha

(alpha)

Source from the content-addressed store, hash-verified

64 * @param {number} alpha
65 */
66 setOpacity(alpha) {
67 this.alpha_ = Color.#clamp01(alpha)
68 }
69
70 /**
71 * @returns {string} e.g. "rgb(255, 0, 0)"

Callers

nothing calls this directly

Calls 1

#clamp01Method · 0.80

Tested by

no test coverage detected