While writing test case in Coded UI I came across a issue. Coded UI is failing to identify some of the object that i declared after the page is refreshed, I some how managed to overcome this scenario by using .Find() method in Coded UI, but now Coded UI taking 10 - 20 seconds locate the element in the page. Is there any alternative way to solve this problem
if (strTestName != string.Empty){
testNameFilter.Find();
testNameFilter.Text = strTestName;
}
if (strTestDate != string.Empty){
testDateFilter.Find();
testDateFilter.Text = strTestDate;
}