I want to get the background color of an element in a DOM using protractor so I'm doing the following.
var redArc = AESummaryTile.performanceChart.element(by.id('myElement')).getCssValue("background-color");
the problem with this is that it returns an rgba, not an rgb which is what I want. The css file only contains the hex value of the color for this element and when examining the page I only see an rgb value. Is there a reason why protractor returns an rgba instead of rgb.
I found the following references on converting the values but I would like to know if there is a better way to do this using protactor
javascript - RGB to Hex and Hex to RGB how to get Hex value instead of RGB
Any help on this would be appreciated