Example Scenarios of GetRoProperty in UFT – User friendly Tech help

1. How to fetch the title of opened browser using UFT?

n

Variable Declaration
Dim sTitle , objDesc ,objBrowser
'Creating Description Object
Set objDesc = Description.Create
'Description object is pointing to Browser
objDesc("micclass").value = "Browser"
'Fetching all the opened Browser
Set objBrowser = Desktop.ChildObjects(objDesc)
'Taking the tile of the opened browser using GetROProperty
For iCounter = 0 to objBrowser.Count -1
MsgBox "Title of opened browser is " & objBrowser(iCounter).GetROProperty("title")Next

n

n
nHow to fetch title value using Selenium
n
n
n
n2.     Fetching all the items present on the Desktop
n
n

n

'Declaring Variables
Dim sItems
'fetching the items present on Desktop
sItems = Window("regexpwndclass:=Progman","regexpwndtitle:=Program Manager").WinListView("nativeclass:=SysListView32").GetROProperty("all items")
'Displaying the resultsMsgBox sItems.count

n

n
n3.How to get the count of the Google search Result ?
n4.Using GetRoProperty to get count of WebList items?

Was this article helpful?
YesNo

Similar Posts