webdriver.support.color

Module Contents

Classes

Color(self,red,green,blue,alpha=1) Color conversion support class
class Color(red, green, blue, alpha=1)

Color conversion support class

Example:

from selenium.webdriver.support.color import Color

print(Color.from_string('#00ff33').rgba)
print(Color.from_string('rgb(1, 255, 3)').hex)
print(Color.from_string('blue').rgba)
from_string()
_from_hsl(s, l, a=1)
__init__(red, green, blue, alpha=1)
rgb()
rgba()
hex()
__eq__(other)
__ne__(other)
__hash__()
__repr__()
__str__()