Micro Focus QTP (UFT) Forums
How to use GetRoProperty for title - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to use GetRoProperty for title (/Thread-How-to-use-GetRoProperty-for-title)



How to use GetRoProperty for title - svsaug6 - 08-23-2013

hi all,
i am trying to click on "register" on home page of the site for that one i want to get title of the page when the page opens.
i am trying to open the page by below code.
but how to get "title" of the page then how to write the code for click the word "Register"
Code:
systemutil.Run "iexplore.exe", "http://www.dealsdirect.com.au/"



RE: i cann't get roproperty for title - ssvali - 08-24-2013

Try this

Code:
title = Browser("micclass:=Browser").Page("micclass:=Page").GetROProperty("title")



RE: How to use GetRoProperty for title - Novemberrain81 - 08-26-2013

Code:
systemutil.Run "iexplore.exe","http://www.dealsdirect.com.au"

TitleValue = Browser("micclass:=Browser").Page("micclass:=Page").GetROProperty("title")
print TitleValue

Browser("micclass:=Browser").Page("micclass:=Page").Link("html tag:=A","text:=Register").Click

This will do it.