preload

How to find all links on a web page (TestComplete)

Posted by Albert Gareev on Dec 15, 2012
0
Description Get parent object reference. In the example given, it’s a browser process, but you can narrow it down to a page or a web container object (table,  div, etc.). Use FindAllChildren to retrieve array of links. – You can limit search depth according to your context. – You may want to do filtered search using […] ...

How to select random list item (QTP, VBScript)

Posted by Albert Gareev on Nov 24, 2011
0
Description  Get object reference. Get total number of items in the list. Generate an index within the given range. Select item by index. Implementation ...

TestComplete – FindChildSync

Posted by Albert Gareev on Dec 13, 2010
0
Parent page: GUI Recognition with TestComplete TestComplete provides a whole set of run-time GUI recognition functionalities, based, however, on the same approach: recognition by property values and/or location of the object in internal hierarchy. In addition to methods that immediately return a child object, if it’s available, there are others, that help finding objects that only about […] ...

TestComplete – Wait then Find

Posted by Albert Gareev on Dec 07, 2010
0
Parent page: GUI Recognition with TestComplete TestComplete provides a whole set of run-time GUI recognition functionalities, based, however, on the same approach: recognition by property values and/or location of the object in internal hierarchy. In addition to methods that immediately return a child object, if it’s available, there are others, that help finding objects that only about […] ...

TestComplete – Couldn’t Find and Fine ...

Posted by Albert Gareev on Nov 23, 2010
0
Parent page: GUI Recognition with TestComplete First of all, a short note to those readers who like to rush into conclusions. This post is about a feature, not bug. Here I continue exploring TestComplete GUI recognition capabilities with code example. The previous two posts (here and here) were about Find, FindChild, and FindAllChildren methods. Today I […] ...

TestComplete – Handling Web Browser (3)

Posted by Albert Gareev on Nov 17, 2010
0
Parent page: GUI Recognition with TestComplete Close, minimize, maximize, move, resize browser window Description A WebForm (Page, Frame, table, etc.) can not be operated same way as window. The first thing function does is iterating upwards the hierarchy to access Process object, which is used to retrieve browser window reference. In the example presented, IEFrame property […] ...

TestComplete – Find Child Objects

Posted by Albert Gareev on Nov 11, 2010
0
Parent page: GUI Recognition with TestComplete TestComplete provides a whole set of run-time GUI recognition functionalities, based, however, on the same approach: recognition by property values and/or location of the object in internal hierarchy. Today’s post is about FindAllChildren method If proper selection of GUI recognition properties is challenge number zero for a beginner automation […] ...

TestComplete – Find Child or Find Yourself?

Posted by Albert Gareev on Nov 10, 2010
0
Parent page: GUI Recognition with TestComplete TestComplete provides a whole set of run-time GUI recognition functionalities, based, however, on the same approach: recognition by property values and/or location of the object in internal hierarchy. Today’s post is about Find method We continue with example from the previous post. What happened when the script clicked on […] ...

TestComplete – Run-time GUI recognition

Posted by Albert Gareev on Nov 09, 2010
0
Parent page: GUI Recognition with TestComplete TestComplete provides a whole set of run-time GUI recognition functionalities, based, however, on the same approach: recognition by property values and/or location of the object in internal hierarchy. Today’s post is about FindChild method Let’s start with the example. Note highlighted lines: this is where object recognition properties are […] ...

TestComplete – Object Recognition Properties

Posted by Albert Gareev on Oct 18, 2010
0
 “I don’t even see the code anymore; all I see now is blonde, brunette, redhead”, Cypher (Matrix the Movie) Parent page: GUI Recognition with TestComplete Unlike operators from the popular movie, automation engineer sees picture first, but has a need to get inside down to the code. In TestComplete we can do that with Object […] ...

TestComplete – Handling Web Browser (2)

Posted by Albert Gareev on Oct 14, 2010
1
Parent page: GUI Recognition with TestComplete Close all browser windows Description In the example presented, Internet Explorer browser program (executable name) is hard-coded (as “iexplore”). Closing begins from first instance number (i.e. a sequential number of the process in memory, if a few were loaded). In first attempt, .Close method is used, which allows an application […] ...

TestComplete – Handling Web Browser (1)

Posted by Albert Gareev on Oct 12, 2010
0
Parent page: GUI Recognition with TestComplete Close single browser window Description In the example presented, Internet Explorer browser program (executable name) is hard-coded (as “iexplore”). Instance number (i.e. a sequential number of the process in memory, if a few were loaded), is parameterized. In first attempt, .Close method is used, which allows an application to finalize. Second […] ...

Service Functions – Windows Web GUI / WinRunner

Posted by Albert Gareev on Oct 23, 2007
0
In the code examples I present I often refer to routine functions. In my framework I have specialized libraries to call from. In my blog I maintain the similar structure. Working with HTML Table Web Table operations (WinRunner, TSL) Get cell text Get cell object Find column by RegEx Find row by RegEx Check table […] ...

Web Table operations 2 (WinRunner, TSL)

Posted by Albert Gareev on Oct 21, 2007
0
Service Functions – Windows Web GUI / WinRunner Loop through web page in order to find matching table Load web table data into matrix Load a range of web table data into matrix ...

Web Table operations (WinRunner, TSL)

Posted by Albert Gareev on Oct 19, 2007
0
Service Functions – Windows Web GUI / WinRunner Get cell text Get cell object Find column by RegEx Find row by RegEx Check table exists with defined text in expected cell ...
Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported
This work by Albert Gareev is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported.