示例#1
0
 /// <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);
 }
示例#2
0
 public void Highlight(Element element)
 {
     _highlightedElement?.Highlight(false);
     _highlightedElement = element;
     _highlightedElement?.Highlight(true);
 }
示例#3
0
 /// <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);
 }
示例#4
0
 public void Highlight(Element element)
 {
     _highlightedElement?.Highlight(false);
     _highlightedElement = element;
     _highlightedElement?.Highlight(true);
 }