Hi,
I have been struggling on selecting date dynamically from calendar form. Initially it was working perfectly for 4 to 5 days and now getting error as below, have checked other threads - no luck
Error:
Cannot find the UI element corresponding to this selector: <html app='chrome.exe' title='Warranty Claims Report' /><webctrl id='Content_ucStartDate_fraCal' tag='IFRAME' /><webctrl aaname=' 9 ' tag='A' href='UCCalendarPop.aspx?p=09-10-2019&id=Content_ucStartDate_&mx=11-10-2019' />
“level”: “Error”,
“logType”: “Default”
Background:
Original Click Selector =
<html app='chrome.exe' title='Warranty Claims Report' />
<webctrl id='Content_btnLoadXml' tag='A' />
Click Selector after adding “href” in UiExplorer:
<html app='chrome.exe' title='Warranty Claims Report' />
<webctrl id='Content_ucStartDate_fraCal' tag='IFRAME' />
<webctrl aaname=' 9 ' tag='A' href='UCCalendarPop.aspx?p=09-10-2019&id=Content_ucStartDate_&mx=11-10-2019' />
My Dynamic Selector: "
<html app='chrome.exe' title='Warranty Claims Report' /><webctrl id='Content_ucStartDate_fraCal' tag='IFRAME' /><webctrl aaname=' "+FromDate.ToString+" ' tag='A' href='UCCalendarPop.aspx?p="+SelectedDate.ToString+"&id=Content_ucStartDate_&mx="+CurrentDate.ToString+"' />
wherein fromdate = DateTime.now.AddDays(-2).ToString(“dd”)
Selected Date = DateTime.now.AddDays(-2).ToString(“dd-MM-yyyy”)
Current Date = DateTime.now.AddDays(-0).ToString(“dd-MM-yyyy”)
Please Help!!