Saturday, January 16, 2016

WebEdit 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”).WebEdit(“Webedit”).Exist
---------------------------------------------

Set: 

Description:  Set method is used set the Text value in the Edit box object.

Syntax:  ObjObject.Set “TextValue”

Return Type:  None 

Example:  Browser(“Browser”).Page(“Page”).WebEdit(“Webedit”).Set “TextValue”
----------------------------------------------------

SetSecure:

Description:  SetSecure method is used set the encrypted value in the Edit box object.

Syntax:  ObjObject.SetSecure “TextValue”

Return Type:  None 

Example:  Browser(“Browser”).Page(“Page”).WebEdit(“Webedit”).SetSecure “TextValue”
-----------------------------------------------------

GetROProperty:

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

Syntax:  ObjObject. GetROProperty(Property)

Return Type:  A Variant Value


Example:  Browser(“Browser”).Page(“Page”).WebEdit(“Webedit”).GetROProperty(“Name”)

No comments:

Post a Comment