Tag Archive: Web

Aug 27 2014

Calculating Page Size in Pixels

This short post describes a handy way to calculate the page size in pixels. The steps: The function GetPageNumPixels accepts a Page test object and calls the function GetDocumentElement. The function GetDocumentElement accepts the same Page object and retrieves, via the Object property, the documentElement for either a Page that is standards-compatible or not. The …

Continue reading »

Feb 06 2014

Check if Page has Scrollbars

Being able to know whether the current web page has a horizontal or vertical scrollbar (or both) can be handy. The following function GetScrollbarState accepts two arguments: The  document (i.e., Browser(“MyBrowser”).Page(“MyPage”).Object) The direction of the scrollbar – “h” for horizontal or “v”” for vertical. And returns true if there is a scrollbar in the given …

Continue reading »

Aug 15 2009

Web Extensibility Lesson – Building a toolkit Support

Web Extensibility is a feature by QuickTest Professional (QTP) which enables you to provide high-level support for third-party and custom Web controls that are not supported out-of-the-box by the QTP Web Add-in. Web Extensibility was a brand new feature in QuickTest Professional 9.5 and since then I never heard or see anyone that has developed a …

Continue reading »

Apr 28 2009

Using Web Anchors to Automate Non-Unique Controls

If the world was perfect, our application would have unique, well named controls. More often than not, though, our applications are a mess of unordered controls, who are deemed non-standard by QTP. In the worst cases, we’re stuck with unnamed non-unique controls, who are only identified by their infamous Index property.
This article will detail an effective approach to robustly automate web controls even in these hard cases.

Apr 19 2009

Effectively Delete Cookies

Andrew Marin has shared the following QTip, which allows us to quickly and effectively delete all cookies in Internet Explorer.
This can be of great help to anyone who handles multiple user sessions during his tests, or just wants to reset the test environment before starting a test run.

Mar 26 2009

A Survey

Ayal Cohen – the functional architect of QTP in HP Software R&D – would like you to spend a few minutes answering a short survey. It would allow HP to design better, more relevant versions of QTP, that will benefit us all.

We thank Ayal for his efforts to help and serve the QTP community, as well as for approaching AdvancedQTP’s worldwide community in this endeavor. In behalf of the AdvancedQTP team – Please go ahead and answer the survey.

Jan 21 2009

Using Runtime Attributes to Describe QTP Web Objects

Barak Kinarti has kindly contributed an extremely useful QTip on how to identify Web objects through their Runtime Attributes. I assume that the reader is familiar with using Test-Object properties to describe QTP objects programmatically (you can refresh your memory on the technique here). Here below a typical example is shown: Set ImgDesc = Description.Create …

Continue reading »

Jul 12 2008

Saving a File from Internet Explorer

Anshoo Arora has a great QTip for saving a file via Internet Explorer. This will produce similar results to manually right-clicking a link and choosing “Save as”: ‘Simulate a web query Set WinHttp = CreateObject(“WinHttp.WinHttpRequest.5.1”) If WinHttp Is Nothing Then Set WinHttp = CreateObject(“WinHttp.WinHttpRequest”) WinHttp.Open “GET”, “http://www.website.com/Documnet_i_want_to_save.pdf”, False WinHttp.Send ‘Get the response arrArray = WinHttp.ResponseBody …

Continue reading »

May 27 2008

Reusing Web Objects after the Page Reloads

Will Roden from the Software Inquisition writes about a major undocumented feature in QTP, which could potentially allow you to write far more elegant test than though possible to date. One of the more frustrating limitations of QTP web test objects was that they went out of sync whenever the webpage reloaded. This means that …

Continue reading »

Apr 23 2008

Firebug

Firebug is the most advanced free web analysis tool to date. While some of its functionality may resemble IE development toolbar (reviewed here), its scope, extra features and attention to details make it invaluable both to QA personal and web-designers. It’s fair to say that the only advantage IE development toolbar has over Firebug, is …

Continue reading »

Older posts «

Fetch more items