标签:
class selenium.webdriver.support.color.Color(red, green, blue, alpha=1)
Bases: object
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)
webDriver API——第14部分Color Support
标签:
原文地址:http://www.cnblogs.com/hushaojun/p/4467672.html