编码的UI在页面ID刷新后等待元素定位

时间:2017-04-05 10:13:26

标签: automated-tests ui-automation coded-ui-tests browser-automation

在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;
}

0 个答案:

没有答案