[]
Removes element by its ID, tag and/or class name.
[Obsolete("This method is deprecated, please, use RemoveElementAsync instead.")]
public void RemoveElement(string elementId, string tag = null, string className = null, bool removeChildren = true)
Type | Name | Description |
---|---|---|
string | elementId | Element ID to remove. |
string | tag | Tag name to remove. |
string | className | Class name of the elements to remove. |
bool | removeChildren | Determines whether child elements should also be removed. |
Body cannot be removed. Instead, it will be cleared.