Saturday, April 6, 2013

QTP - Exist Property

QTP - Exist Property

SystemUtil.Run "iexplore.exe", "https://www.google.com"

Var=Browser("name:=Google").Page("title:=Google").WebEdit("name:=q").Exist(5)
Msgbox var ' Returns True if page if WebEdit is found within given time i.e. 5 seconds


'".Exists" retsurns boolean value i.e. True or False

No comments:

Post a Comment