/// <summary> /// Removes an attribute from an element. /// </summary> /// <param name="element"> The element to remove the attribute from. </param> /// <param name="name"> The name of the attribute to remove. </param> public void RemoveElementAttribute(Element element, string name) { LogManager.Write("Removing element attribute with ID of " + element.Id + ".", LogLevel.Verbose); ExecuteJavaScript("TestR.removeElementAttribute('" + element.Id + "', '" + name + "');", false); }
public void Highlight(Element element) { _highlightedElement?.Highlight(false); _highlightedElement = element; _highlightedElement?.Highlight(true); }
/// <summary> /// Removes the element from the page. * Experimental /// </summary> /// <param name="element"> The element to remove. </param> public void RemoveElement(Element element) { LogManager.Write("Removing element with ID of " + element.Id + ".", LogLevel.Verbose); ExecuteJavaScript("TestR.removeElement('" + element.Id + "');", false); Elements.Remove(element); }