This article was originally requested by one of our visitors – Dhup Chaya. It shows a way to work with Web Services (Google’s Distance Matrix API) using XMLHTTPRequest (sending request & receiving response) and parsing the response with both XMLUtil and XMLDOM.
VBScript
Over the past few years, I have read numerous threads and posts talking about working with Excel using VBScript. Not only have there been numerous threads, but also frameworks that use Excel as the input and/or driver engine. I wanted to work on this mini-project for a long time, and I finally have Version 1.0 of ExcelUtil ready for download! It comes with .CHM documentation.
This tip shows how to disable the Error message: “A script on this page is causing Internet Explorer to run slowly” with using VBScript.
VBScript’s error handling techniques have been quite limited to On Error statements, and even though they satisfy our needs to some extent, the lack of incorporating dynamic behavior with them has been a much bigger issue. In this article, I will implement a Try-Catch-Finally statement with QTP’s GUI objects along with an On Error statement. This will enable dynamic behavior and enable us to easily divide flow depending on different error conditions.