Hi,
My SUT has a diary page which can either be in 30 minute mode or 1 hour mode. When in 30 minute mode there is a gap of 30 mins between each of the TRs in the table body. See below:
TR1 12am
TR2 (no innertext)
TR3 1am
TR4 (no innertext)
TR5 2am
etc...etc...
When the diary is in 1 hour mode there is a gap of 1 hour between each TR, see below:
TR1 12am
TR2 (no innertext)
TR3 2am
TR4 (no innertext)
TR5 4am
etc...etc...
What I need to do is set up a test that will validate that the diary is in 1 hour mode when the user selects that this should be the case. This would be an easy test to create if the starting point of the diary was always 12AM (in such a case I would just validate that TR3 equals 2am, or that TR5 equals 4am) but it won't be. The start time will be dependent on the start time of the user's first appointment (i.e. it will change all the time). Hence, what I need to check is that the innertext value of TR3 is 2 hours more than the innertext value in TR1. But the inner text of TR1 will not be known until runtime. Is there a way I can do this? If not, can you suggest another means by which I can test this scenario?
Thanks in advance.
Martin