Exemplo n.º 1
0
        /// <summary>
        /// Get the Css property value of the webelement
        /// </summary>
        /// <param name="propertyName">property name</param>
        /// <returns></returns>
        public string GetCssValue(string propertyName)
        {
            var cssProp = WrappedElement.GetCssValue(propertyName);

            Logger.Info("Returned CSS property: '{0}' Value: '{1}' from element {2} .", propertyName, cssProp, by);
            return(cssProp);
        }
Exemplo n.º 2
0
 /// <summary>
 ///     Gets the value of a CSS property of this element.
 /// </summary>
 /// <param name="propertyName">The name of the CSS property to get the value of.</param>
 /// <returns>
 ///     The value of the specified CSS property.
 /// </returns>
 /// <remarks>
 ///     The value returned by the <see cref="M:OpenQA.Selenium.IWebElement.GetCssValue(System.String)" />
 ///     method is likely to be unpredictable in a cross-browser environment.
 ///     Color values should be returned as hex strings. For example, a.
 ///     "background-color" property set as "green" in the HTML source, will.
 ///     return "#008000" for its value.
 /// </remarks>
 public string GetCssValue(string propertyName)
 {
     return(WrappedElement.GetCssValue(propertyName));
 }
Exemplo n.º 3
0
 public string GetCssValue(string cssAttribute)
 {
     return(WrappedElement?.GetCssValue(cssAttribute));
 }
 public string GetCssValue(string propertyName) => WrappedElement.GetCssValue(propertyName);
Exemplo n.º 5
0
 public string GetCssValue(string cssValue)
 {
     UpDriver.WaitForPageReady();
     Log.GetLogger().Info($"Getting [{cssValue}] CssValue for element [{ElementIdentifier}]");
     return(WrappedElement.GetCssValue(cssValue));
 }
Exemplo n.º 6
0
 /// <summary>
 ///     Gets the value of a CSS property of this element.
 /// </summary>
 public string GetCssValue(string propertyName)
 {
     NgDriver.WaitForAngular();
     return(WrappedElement.GetCssValue(propertyName));
 }