TESTEVERYTHING

Thursday 4 August 2011

Get Text Location / ClickOnText QTP VB

Hi All,
Now I am going to describle the undocumented feature of QTP that is ClickONText  method . Some time we require the object text location ( x ,y position ) in window so that we can click  that object by use  Get text location method. like this
rem  Open the “C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe” application.
SystemUtil.Run “C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe”,”C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe”,”"
rem   Make the “Login” dialog box active.
Dialog(“Login”).Activate

Which one is right ?

Translate







Tweet