If 3 browsers are opened in our system, how to enter the
facebook url into second browser by using descriptive
programing
Answer Posted / sireesha
'Open a new Browser
SystemUtil.Run "iexplore.exe", "http://www.google.com"
'Browser Sync
Browser("CreationTime:=0").Sync
'Find total number of tabs in the browser window
iTabs = Browser("CreationTime:=0").GetROProperty("number of tabs")
msgbox iTabs 'Displays the value 1
'Open a new tab within the same browser
Browser("CreationTime:=0").OpenNewTab()
'Sync for new tab
Browser("CreationTime:=1").Sync
'Load some web page in the new tab
Browser("CreationTime:=1").Navigate "http://www.yahoo.com"
'Find total number of tabs in the browser window
iTabs = Browser("CreationTime:=0").GetROProperty("number of tabs")
msgbox iTabs 'Displays the value 2
'Close all the tabs in the browser window
Browser("CreationTime:=0").CloseAllTabs()
'OR -> Browser("CreationTime:=1").CloseAllTabs()
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Describe function procedure in vbscript.
In qtp, how you can remove the spaces from string?
Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji
what is object and child object.. explain ..if possible give some example for better understanding ..
Difference between test object and run time object?
What are the different types of functions available in qtp and explain ?
Dear sir, i want to perform a QTP automated testing for mechancial engineering software like msc adams, msc nastran this softwares will help for mechanical engineering design analysis>> i know oad runner win runner, test director, QTp>> but i dont know how to use for automation
Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji
What are the differences between table and db checkpoints?
how interviews will be on QTP?
Whats the realtime QTP testing process
Explain the features of quick test pro(qtp)?
hi all can anyone explain how to write the code for finding the mandatory columns in table which are having (red*) (red Astrik)
How do you capture tooltip using QTP?
How Can I find the least value in a bunch of variables using qtp.. E.g.:- A = 210, B = 212, C = 60, D = 111 I don’t want to write bunch of lines for this…. Is there a way to get the result in one line…..