我用的是testcomplete 12, 是正式版,不是试用版。到目前用了2个月,下面这条语句一直跑的好好地:
while(Sys.WaitBrowser("iexplore").Exists == true)
{
//Closes the process by sending the WM_CLOSE message to its main window.
Sys.WaitBrowser("iexplore").Close();
}
//Launches the specified browser and opens the specified URL in it.
Browsers.Item(btIExplorer).Run(Project.Variables.URL);
//Waits until the browser loads the page and is ready to accept user input.
但是隔一段时间,它就报错:
JavaScript runtime error.
Sys.WaitBrowser is not a function.
一旦出现上面的错误,它就连找元素的功能都差着了。一找就整屏红框,不管怎么动都不能找到具体的元素上。
同事也遇到了这种情况,她重装Testcomplete了。请问除了重装,还有别的办法吗?
谢谢!