codecamp

selenium2 颜色支持

class selenium.webdriver.support.color.Color(red,green,blue,alpha=1)

颜色变换支持类:

from selenium.webdriver.support.color import Color

print(Color.from_string('#00fff33').rgba)
print(Color.from_string('rgb(1,255,3)').hex)
print(Color.from_string('blue').rgba)
static from_string(str)
hex
rgb
rgba


selenium2 UI支持
预期条件支持
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定