I try this way and use SeleniumLibrary and I use Python 2.7.16
${elements} Get Webelement (//div[@class="slds-col call-scripticon"])[1]
${bg color} Call Method ${elements} value_of_css_property background-color
but I got rgb(36, 6, 66) I don't know how to get color in #240642 format
HTML
<div class="slds-col call-scripticon" data-aura-rendered-by="2:7200;a" xpath="1"></div>
Style
element.style {
}
.call-scripticon {
background-color: #240642;
}
Anyone help me please.