Below is the sample tag
I would need an output for the style attribute which is "padding-left:16px;;" Tried @browser.td(:class, "xxxx").attribute_value("style") and the output I get is "" where as I was expecting "padding-left:16px;;" Any help is appreciated.
@browser.td(:class, "xxxx")returns the first matching element. The one you are looking for might not be the first one on the page, which is why you do not get the expected value. - Justin Ko