Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SeleniumHQ/selenium
/ setOpacity
Method
setOpacity
java/src/org/openqa/selenium/support/Color.java:66–68 ·
view source on GitHub ↗
(double alpha)
Source
from the content-addressed store, hash-verified
64
}
65
66
public
void
setOpacity(double alpha) {
67
this.alpha = alpha;
68
}
69
70
public
String asRgb() {
71
return
String.format(
"rgb(%d, %d, %d)"
, red, green, blue);
Callers
2
checkSettingOpacityRGB
Method · 0.95
checkSettingOpacityRGBA
Method · 0.95
Calls
no outgoing calls
Tested by
2
checkSettingOpacityRGB
Method · 0.76
checkSettingOpacityRGBA
Method · 0.76