|
I have two control on my web page.
<tr id="FCYear2" style="display: inline; background-color: rgb(234, 234, 234);">
<tr id="FCYear3" style="display: none;">
First control "FCYears2" shows up on the webpage. The second one "FCYear3" is not displayed on page.
I have to validate the above controls display. I wrote below
Assert.IsTrue(pgSubmitServiceOrder.cel2012.Exists);
Assert.IsFalse(pgSubmitServiceOrder.cel2013.Exists);
First assertion is passed. Second assertion is failed. How can we validate the control existence based on the style or any other way ? Appreciate your hep in this ?
Thanks,
Sailaja
|