I am attempting to automate user interaction with a jquery calendar which happens to be a divTag.
There are two parts that I am successfully getting now from each day in the calendar which are the InnerText (day) and the Title (description).
I am encountering some minor obstacles (which are surely related to my coding knowledge) that I'm hoping I can get some help with.
Here is my function:
public void iterateOverAllCalRows() { var allTableRowsInfo = repo.CharterAPrivatePlaneWithCobaltAir.Calendar.SelfInfo; var allRowsList = allTableRowsInfo.CreateAdapters<DivTag>(); int i = 1; //Loop through each row foreach(DivTag row in allRowsList) { //Initialize rowInfo string rowInfo = ""; // Get all cells from row rowInfo += "Row " + i +": "; i++; //Loop through each cell foreach (DivTag cell in row.Find(".//div[@tagname='div']")) { //Add the data (text) of cell to rowinfo rowInfo += cell.InnerText + ", " + cell.Title + "; "; Report.Info(cell.InnerText + ", " + cell.Title + "; "); // Move to next cell element cell.MoveTo(); } }My output begins like the following since there's a Month and Year at the top of the calendar and day abbreviations at the top of each column; I would like to be able to skip these and get right to the "meat" of the calendar but treating this calendar as a table (in order to skip rows) has gotten me nowhere since everything is reported as being in Row 1 if I just do a Report.Info(rowInfo):
00:10.283 Info User , ;
00:10.813 Info User , ;
00:11.188 Info User , ;
00:11.563 Info User , ;
00:11.984 Info User S, ;
00:12.358 Info User M, ;
00:12.811 Info User T, ;
00:13.201 Info User W, ;
00:13.591 Info User T, ;
00:13.966 Info User F, ;
00:14.340 Info User S, ;
The report also ends with
00:31.349 Info User , ;
The calendar divTag displays days from the previous month's last few days if the calendar month doesn't start on a Sunday. Is there an easy way to select only the cells belonging to the particular month that I want to look at? I thought of a > and < statement but that might include the last days from the past month...
I would appreciate, as always, any help that anyone can provide... thanks!