【发布时间】:2012-05-22 09:12:29
【问题描述】:
我有这段代码(在 Selenium IDE 中):
storeEval | window.document.defaultView.getComputedStyle(window.document.getElementsByTagName('input')[0]).getPropertyValue('background-color') | result
它在(rrr, ggg, bbb) 中返回了我的颜色,我怎样才能在RRGGBB 中获得这种颜色?
【问题讨论】:
-
这里是如何在Javascript中进行转换stackoverflow.com/q/57803/1399920
标签: javascript selenium ide