[]
Removes element by its ID, tag and/or class name asynchronously.
public Task RemoveElementAsync(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. |
Type | Description |
---|---|
Task |
Body cannot be removed. Instead, it will be cleared.