Solved
Forum Discussion
royd
6 years agoRegular Contributor
Hi Robert
Sorry for delayed response. It took me a while but finally figured it out. Thanks for pointing me to right direction. This is what finally worked:
var previewColor = previewSwatch.ownerDocument.defaultView.getComputedStyle(previewSwatch, "").backgroundColor;
Bhagavathi
6 years agoVisitor
color_value=Aliases.browser.page.{object_name}.getAttribute('fill')
Log.Message(color_value)
color_value has "#e1542b", I have to convert hexcode to rgb inorder to verify rgb color value, as have a color file where I stored the list of colour name according to rgb values.
Kindly help on this.