.//*[@id='colDiv_Apr282014']/div[5]/div[1]
.//*[@id='colDiv_Apr282014']/div[9]/div[1]
.//*[@id='colDiv_Apr282014']/div[11]/div[1]
In the xpath above, you can see the value inside the first div-is getting changed everytime. ts not constant. I want to use a comman xpath format for the above case so that I can execute the test cases 20 times. How can this be done?
Following is the screenshot of how the page looks.
<div class="cal-event new-cal-event ui-corner-all ui-resizable ui-draggable" style="line-height: 18px; font-size: 10px; top: 80px; height: 40px; display: block;"> <div class="time ui-corner-all">01:00 am to 01:30 am</div> <div class="title">New Event</div> <div class="ui-resizable-handle ui-resizable-s"></div> </div> </div> </td>
This is how the timeslots are created in the page<div>
that you want to access have any unique attribute? ID, class, value, etc?