OpenQA.Selenium.Remote.RenderedRemoteWebElement.GetValueOfCssProperty C# (CSharp) 메소드

GetValueOfCssProperty() 공개 메소드

Method to return the value of a CSS Property
public GetValueOfCssProperty ( string propertyName ) : string
propertyName string CSS property key
리턴 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();
        }