Saturday, January 16, 2016

WebButton methods in QTP/UFT with examples

Exist:

Description:  Exist method is used to check whether the object exists in the Open Application or Not.

Syntax:  ObjObject.Exist

Return Type:  A Boolean Value

Example:  Browser(“Browser”).Page(“Page”).WebButton(“WebButton”).Exist
---------------------------------------------

Click:

Description:  Click method is used click on the WebButton object.

Syntax:  ObjObject.Click

Return Type:  None 

Example:  Browser(“Browser”).Page(“Page”).WebButton(“WebButton”).Click
-----------------------------------------------------

GetROProperty:

Description:  GetROProperty method is used get the current value of the Webbutton object.

Syntax:  ObjObject. GetROProperty(Property)

Return Type:  A Variant Value


Example:  Browser(“Browser”).Page(“Page”).WebButton(“WebButton”).GetROProperty(“Name”)

No comments:

Post a Comment