Modified the ExpectedConditions to avoid stale element reference exceptions.
Added ExpectedConditionsTest to the list of selenium tests.
Added new tests to verify the change in functionality.