I am trying to record a script using a calendar to select dates. On the first recording the code recorded is
<font class="small">Code:</font><hr /><pre>table_htmlTable_1().dragToScreenPoint(atCell (
atColumn(atIndex(1)))); </pre><hr />
How do i edit this code to give me a different date? I dont want to have to record again if i wanted to use a diff date.
Is there a simpler way of selecting a date from a calendar control in RFT?
"Until the lions have their own historians, the history of the hunt will always glorify the hunter...”
One alternate method you can use is to split the grid into cells and determine its values using the code for Itestdatatable.,
at = (ITestDataTable)table_htmlTable_1_2().getTestData( "grid");
System.out.println("row count" +at.getRowCount());
System.out.println("column count" +at.getColumnCount());
System.out.println("Value at cell (" + i+ "," + j+")is: " + at.getCell(i,j));
After the cell location is found, it can be made easier.
you definitely have to code a custom widget for that date selection control.