/// <summary> /// Clear the element content /// </summary> public virtual void Clear() { try { RawElement.Clear(); if (Value.HasValue()) { RawElement.SendKeys(Keys.Control + "a"); RawElement.SendKeys(Keys.Delete); } Value.Should().BeEmpty("Control was not cleared"); } catch (Exception ex) { Highlight(); throw new WebControlException(Driver, ex, "Control could not be cleared.", this); } }