/// <summary> /// Determines if a set of CSS properties has been applied within the given HTML document. /// </summary> /// <param name="htmlConn">The HTML connector containing the document to check.</param> /// <param name="properties">The CSS property names.</param> /// <returns>Total amount of existing properties, plus the name of those properties</returns> public (int count, string[] exists) PropertyApplied(Connectors.Html htmlConn, string[] properties) { return(PropertyApplied(htmlConn.HtmlDoc, properties.ToDictionary(x => x, y => string.Empty))); }
/// <summary> /// Determines if a set of CSS properties has been applied within the given HTML document. /// </summary> /// <param name="htmlConn">The HTML connector containing the document to check.</param> /// <param name="properties">The CSS property names and its expected values.</param> /// <returns>Total amount of existing properties, plus the name of those properties</returns> public (int count, string[] exists) PropertyApplied(Connectors.Html htmlConn, Dictionary <string, string> properties) { return(PropertyApplied(htmlConn.HtmlDoc, properties)); }
/// <summary> /// Determines if a current CSS document property is beeing within a given HTML document. /// </summary> /// </summary> /// <param name="htmlConn">The HTML connector containing the document to check.</param> /// <param name="property">The CSS property name.</param> /// <param name="value">The CSS property value.</param> /// <returns>True if the property is being used.</returns> public bool PropertyApplied(Connectors.Html htmlConn, string property, string value = null) { return(PropertyApplied(htmlConn.HtmlDoc, property, value)); }