Seeking the Xpath for the Row that was added upon clicking a button. Need to click on the datepicker in the first row and first column to select a date. How can I locate the Xpath for this date picker element? See my code snippet below
`<table id="list" class="ui-jqgrid-btable" cellspacing="0"
cellpadding="0" border="0" style="border: 0px none ! important;
width: 2205px;" tabindex="0" role="grid" aria-multiselectable="false" aria-labelledby="gbox_list">
<tbody>
<tr class="jqgfirstrow" style="height:auto" role="row">
<td style="height:0px;width:100px;" role="gridcell"></td>
... (more table rows) ...
<td style="height:0px;width:150px;display:none;" role="gridcell"></td>
</tr>
<tr id="1" class="ui-widget-content jqgrow ui-row-ltr ui-state-
highlight disableRow" tabindex="0" role="row" aria-selected="true"
editable="1">
<td rowspan="1" aria-describedby="list_effectiveDate" style="" role="gridcell">
<input id="1_effectiveDate" class="editable hasDatepicker border-
red" type="text" name="effectiveDate" style="width: 98%;" role="textbox" readonly="readonly"></td>
`
Tried the following code:
`driver.findElement(By.xpath(".//*[@id='1']/td[1]")).toString();
driver.findElement(By.id("1_effectiveDate")).click();
driver.findElement(By.xpath(".//*[@id='ui-datepicker-div']/table/tbody/tr[5]/td[2]/a")).click();`