在Coded UI中编写测试用例时,我遇到了一个问题。编码的UI无法识别我在页面刷新后声明的一些对象,我有些人如何通过在编码用户界面中使用 .Find()方法来克服这种情况,但现在编写了用户界面的UI 10 - 20 秒在页面中找到元素。有没有其他方法可以解决这个问题
if (strTestName != string.Empty){
testNameFilter.Find();
testNameFilter.Text = strTestName;
}
if (strTestDate != string.Empty){
testDateFilter.Find();
testDateFilter.Text = strTestDate;
}