- Регистрация
- 28.02.2012
- Сообщения
- 70
- Благодарностей
- 6
- Баллы
- 0
In some HTML pages, it sometimes happen that the function IsBusy() is KO even though the page is not entirely loaded.
For example :
One solution I've found is to use the Thread.Sleep () function
but it does not seem like the best solution.
Others ideas ?
For example :
Код:
he.RiseEvent("click", instance.EmulationLevel);
if (tab.IsBusy) tab.WaitDownloading();
he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("a", "InnerText", "Log\\ out", "regexp", 0);
// Test KO because HTML page is not entirely loaded.
if (he.IsVoid) {
.......
}
Код:
....
if (tab.IsBusy) tab.WaitDownloading();
System.Threading.Thread.Sleep(5000);
....
Others ideas ?