Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Retreive Title for an Already Open Browser
#1
Solved: 10 Years, 8 Months, 3 Weeks ago
I have an application that when I enter info into one web browser another autiomatically opens. Its title also changes depending on its status. I have tried the datatable to parameterize this but its too painful and time consuming to do because we want to use different servers with the script. So I want to once the window is open, retreive the title property in a descriptive way? Does anyone know how to do this?
Reply
#2
Solved: 10 Years, 8 Months, 3 Weeks ago
Use the following code inorder solve your problem.
it will give you all the browsers titles one by one opened in the desktop

Code:
Set Titles=description.Create()
Titles("micclass").value="Browser"
Set Brows=Desktop.childobjects(Titles)
NoOfBrowsers=Brows.Count
for i=0 to NoOfBrowsers-1
TitleofBrowser=Browser("creationtime:="&i).GetRoProperty("title")
msgbox TitleOfBrowser
next


Regards

Ramu
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Script not getting title in IE UFT_Newbie 1 2,408 09-25-2014, 10:16 AM
Last Post: vinod123
  Cannot find the "[ WebEdit ]" object's parent "[ Browser ]" (class Browser). Verify t Divya Roopa 1 8,283 03-11-2014, 12:13 PM
Last Post: devarapallliramana
  How to use GetRoProperty for title svsaug6 2 9,334 08-26-2013, 03:36 AM
Last Post: Novemberrain81
  Sendkeys to close an open web browser prasadworld321 2 8,198 03-05-2010, 12:23 PM
Last Post: prasadworld321
  Want to open a new browser window with new session umer830 1 7,884 01-18-2010, 04:45 PM
Last Post: satan

Forum Jump:


Users browsing this thread: 1 Guest(s)