0

I am trying to get style properties from an element using selenium which displays as below.

element.style {
    left: 0px;
    margin: 0px;
    width: 414px;
    top: 0px;
}
    .Content
    {
        min-height: 500px;
        padding-top: 10px;
    }

Using the below code retrieves only the element style properties "left: 0px;margin: 0px;width: 414px;top: 0px;"

 var style = webelement.GetAttribute("style");

How to get all the styles specific to Content class ?

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
Sharmila Kumari
  • 81
  • 1
  • 3
  • 6

1 Answers1

0

To retrieve the value of WebElement's style and Content you can use the following solutions:


References

You can find a couple of relevant detailed discussions in:

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352