I can put timeout setting in order to stop loading a page after certain time - lets say 60 sec.
But this doesn't always work, as when there are some strange proxy errors the page loads for a really long time - around 500 sec or more I think.
1) Is there any way to add a command that would stop page from loading. The command that is th same as clicking on the red X button in the project maker browser.
2) How is it possible to get the page text before the page is fully loaded (it loads longer because of the javascript execution).
This code doesn't work for exmaple, as it waits untill the page is loaded:
##############################
Tab tab = instance.ActiveTab;
if ((tab.IsVoid) || (tab.IsNull)) return -1;
//if (tab.IsBusy) tab.WaitDownloading();
tab.Navigate(project.Variables["myurl"].Value, "");
//if (tab.IsBusy) tab.WaitDownloading();
##############################
I disabled/commented out tab.WaitDownloading, but it still waits untill the page is loaded.
But this doesn't always work, as when there are some strange proxy errors the page loads for a really long time - around 500 sec or more I think.
1) Is there any way to add a command that would stop page from loading. The command that is th same as clicking on the red X button in the project maker browser.
2) How is it possible to get the page text before the page is fully loaded (it loads longer because of the javascript execution).
This code doesn't work for exmaple, as it waits untill the page is loaded:
##############################
Tab tab = instance.ActiveTab;
if ((tab.IsVoid) || (tab.IsNull)) return -1;
//if (tab.IsBusy) tab.WaitDownloading();
tab.Navigate(project.Variables["myurl"].Value, "");
//if (tab.IsBusy) tab.WaitDownloading();
##############################
I disabled/commented out tab.WaitDownloading, but it still waits untill the page is loaded.