Hi,I was wondering if anyone knows how the retry logic in coypu works
and if it is possible to use certain features of coypu in isolation?
Any help would be awesome.
--
You received this message because you are subscribed to the Google Groups "Coypu" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coypu+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
while (true) { if (stopwatch.Elapsed.Seconds > 40) throw new Exception("Timeout wait for async commands to complete.");
var ajaxIsComplete = false; try { if (js != null) ajaxIsComplete = (bool)js.ExecuteScript("return (window.gaGlobal !== null);"); } catch (UnhandledAlertException) { ajaxIsComplete = true; } catch (InvalidOperationException) { }
if (ajaxIsComplete) { break; } }
I would like the ability to control coypu slightly more in particular the retry logic that handles waiting for a page to fully load since currently I am using polling that can cause false negatives (shown below).
while (true){if (stopwatch.Elapsed.Seconds > 40) throw new Exception("Timeout wait for async commands to complete.");var ajaxIsComplete = false;try{if (js != null) ajaxIsComplete = (bool)js.ExecuteScript("return (window.gaGlobal !== null);");}catch (UnhandledAlertException){ajaxIsComplete = true;}catch (InvalidOperationException){}if (ajaxIsComplete){break;}}