CSS styles on a page

Hello how can I store or extract the CCS style of an element on a page. This information is not stored in the HTML

.css-1ab6oa {
position: absolute;
top: 0px;
width: 100%;
height: 100%;
background-position: center top;
background-size: cover;
border-radius: 6px;
}

To get specific style value from css use the selenium ide store Attribute command.

Can you give me an example because when I try and getting CCS style like position I get an error like this
[error][ignored] [Line 9]: missing attribute ‘position’

    hello? can you please respond

me too? The documentation is very vague in this regard.

Ok, I figured out a solution but it has nothing to do with storeAttribute as suggested above (which doesn’t work at all, as far as I can tell, at least with the documentation provided).

What does work is executeScript (not sandbox). If you have the ID of the element in question, something like this works:

{
  "Name": "MyTest-1",
  "CreationDate": "2022-3-23",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://amazon.com",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "executeScript",
      "Target": "var element = document.getElementById('icp-nav-flyout');\nvar classes = element.className;\nreturn classes;",
      "Value": "check",
      "Description": ""
    },
    {
      "Command": "echo",
      "Target": "${check}",
      "Value": "",
      "Description": ""
    }
  ]
}