![]() Print "Yahoo took $seconds seconds to load. ![]() Now that we are hooked up to IE Events, I simply wait until the number of BeforeNavigate2 events is equal to the number of DocumentComplete events, then tell Samie to stop blocking and script execution continues. Remember that the internal WaitForDocumentComplete has been blocking the samie script, but it does not block calls to the Event callback subroutine. Through it's connection to the Internet Explorer COM object Samie is able to catch an event whenever it is fired by Internet Explorer because IE actually calls Samie's Event subroutine. Has been setup to be a COM callback subroutine. How is samie able to watch events being fired by Internet Whenever you call a function from samie that loads a new page, this function blocks your script from proceeding while samie watches for events being fired from Internet Explorer. Samie 2.0, SAM.pm contains an internal function called WaitForDocumentComplete. How does samie know when a page is complete? GUI will help you find controls on a page and write samie scripts. If these objects move around on the page due to spec requirements samie spins through the whole DOM looking for objects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |