cgotberg
15 years agoNew Contributor
OnWebPageDownloaded event not working when running from a suite
I implemented the Web Testing Event OnWebPageDownloaded in some of my scripts to see what has been downloaded. The function works fine when I run from a standalone project, but when I run it from a project suite it doesn't work. I.e. if I select a main script and hit the run current script the system picks up the page downloaded just fine. If I setup a project suite to run this single project and click the run Project Suite button the system no longer picks up that event. It seems like there is some kind of bug when running in project suite mode.
Here's my relatively simple event code.
GeneralEvents_OnWebPageDownloaded(Sender, WebBrowser, URL)
Here's my relatively simple event code.
function GeneralEvents_OnWebPageDownloaded(Sender, WebBrowser, URL)
GeneralEvents_OnWebPageDownloaded(Sender, WebBrowser, URL)
{
Log["Message"]("WebBrowser = " + WebBrowser + " URL = " + URL);
if(BuiltIn["StrMatches"]("about:blank", URL))
{
//Log["Message"]("Test = " + BuiltIn["StrMatches"]("about:blank", URL));
AboutBlankPageLoaded = true;
}
}