OpenQA.Selenium.Remote.RenderedRemoteWebElement.GetValueOfCssProperty C# (CSharp) Method

GetValueOfCssProperty() public method

Method to return the value of a CSS Property
public GetValueOfCssProperty ( string propertyName ) : string
propertyName string CSS property key
return string
        public string GetValueOfCssProperty(string propertyName)
        {
            Dictionary<string, object> parameters = new Dictionary<string, object>();
            parameters.Add("id", Id);
            parameters.Add("propertyName", propertyName);
            Response commandResponse = Parent.Execute(DriverCommand.GetElementValueOfCssProperty, new object[] { parameters });
            return commandResponse.Value.ToString();
        }