private static void AssertClickingPreservesCurrentlySelectedStatus(IWebElement element)
{
bool currentSelectedStatus = element.Selected;
try
{
element.Click();
}
catch (InvalidElementStateException)
{
// This is expected, as we are clicking disabled elements.
}
AssertSelected(element, currentSelectedStatus);
}