Documente Academic
Documente Profesional
Documente Cultură
com
QTP Methods
Activate: It activates dialog boxes/Windows
Syntax: Object hierarchy. Activate
Ex:
Dialog(“Login”).Activate
Window(“Flight Reservation”).Activate
Select Method:
It is used for selecting an item from a combo box or list box.
Syntax: Object hierarchy.select “item”
Ex:
Window("Flight Reservation").WinComboBox("Fly From:").Select "London"
Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select "12572
GetRoproperty:
It returns current object property value. It can be used for getting any object’s, any property
value.
Syntax: Variable = object hierarchy.getroproperty (“property name”)
Ex: x=Window("Flight Reservation").WinEdit("Tickets:").GetROProperty ("width")
msgbox x
Navigate Method:
It opens a specified URL in the Browser.
Syntax: object hierarchy.navigate “URL”
Ex: Browser("Yahoo!").Navigate http://www.google.co.in/