III Different options to Utilize Output Checkpoint - Text - Fetch the Checkpoint values in QTP / MF UFT : -
-------------------------------------------------------------------------------------------------------------------------
'''''' Option I ''''''
Browser("Sun NIK Browser").Page("Sun NIK Pg_2").WebElement("Product Information").Output CheckPoint("Product Information")
'''''' Option I ''''''
OptionIResult = Browser("Sun NIK Browser").Page("Sun NIK Pg_2").WebElement("Product Information").GetROproperty("innertext")
Print "OptionIResult : "&OptionIResult
Msgbox OptionIResult
'''''' Option II ''''''
OptionIIResult = CheckPoint("Product Information").GetTOproperty("innertext")
Print "OptionIIResult : "&OptionIIResultMsgbox OptionIIResult
'''''' Option III ''''''
Browser("Sun NIK Browser").Page("Sun NIK Pg_2").Output CheckPoint("Sun NIK Browser Corporation | Lite Garden Provisioning Tool")
OptionIIIResult = DataTable("SunNIKOutput_Text_out2", dtGlobalSheet)
Print "OptionIIIResult : "&OptionIIIResult
Msgbox OptionIIIResult
wait(1)
'$---------------------------------------------------------------------------------------------------------------------------
OUTPUT : ( In Print Log ) :-
----------------------------------
OptionIResult : Product Information
OptionIIResult : Product Information
OptionIIIResult : Product Information
OptionIVResult : Product Information
'and the Simple Method'------------------------------
'''''' Simple OptionIVResult ''''''
Browser("Sun NIK Browser").Page("Sun NIK Pg_2").WebElement("Product Information").highlight
Wait(1)
OptionIVResult = Browser("Sun NIK Browser").Page("Sun NIK Pg_2").WebElement("Product Information").GetROproperty("innertext")
Print "OptionIVResult : "&OptionIVResult
Msgbox OptionIVResult
-------------------------------------------------------------------------------------------------------------------------
'''''' Option I ''''''
Browser("Sun NIK Browser").Page("Sun NIK Pg_2").WebElement("Product Information").Output CheckPoint("Product Information")
'''''' Option I ''''''
OptionIResult = Browser("Sun NIK Browser").Page("Sun NIK Pg_2").WebElement("Product Information").GetROproperty("innertext")
Print "OptionIResult : "&OptionIResult
Msgbox OptionIResult
'''''' Option II ''''''
OptionIIResult = CheckPoint("Product Information").GetTOproperty("innertext")
Print "OptionIIResult : "&OptionIIResultMsgbox OptionIIResult
'''''' Option III ''''''
Browser("Sun NIK Browser").Page("Sun NIK Pg_2").Output CheckPoint("Sun NIK Browser Corporation | Lite Garden Provisioning Tool")
OptionIIIResult = DataTable("SunNIKOutput_Text_out2", dtGlobalSheet)
Print "OptionIIIResult : "&OptionIIIResult
Msgbox OptionIIIResult
wait(1)
'$---------------------------------------------------------------------------------------------------------------------------
OUTPUT : ( In Print Log ) :-
----------------------------------
OptionIResult : Product Information
OptionIIResult : Product Information
OptionIIIResult : Product Information
OptionIVResult : Product Information
'and the Simple Method'------------------------------
'''''' Simple OptionIVResult ''''''
Browser("Sun NIK Browser").Page("Sun NIK Pg_2").WebElement("Product Information").highlight
Wait(1)
OptionIVResult = Browser("Sun NIK Browser").Page("Sun NIK Pg_2").WebElement("Product Information").GetROproperty("innertext")
Print "OptionIVResult : "&OptionIVResult
Msgbox OptionIVResult