If 3 browsers are opened in our system, how to enter the
facebook url into second browser by using descriptive
programing




Answers were Sorted based on User's Feedback



If 3 browsers are opened in our system, how to enter the facebook url into second browser by using..

Answer / gabbar

browser("CreationTime:=1").Navigate"facebook.com"

Is This Answer Correct ?    4 Yes 0 No

If 3 browsers are opened in our system, how to enter the facebook url into second browser by using..

Answer / 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

If 3 browsers are opened in our system, how to enter the facebook url into second browser by using..

Answer / milan

You can use the ordinal identifier -Browser creation time

enter the url where browser creation time =1

Is This Answer Correct ?    1 Yes 2 No



Post New Answer



More QTP Interview Questions

Hi, My name is kishan. I have good Conceptual Knowledge on QTP. In order to Boost up my Confidence Level, I want to do a Project oriented Training only on QTP in Hyderabad. Kindly Let me know which is the Best QTP Project Training Institute in Hyderabad. Thanks in Advance kishan

0 Answers  


what are the utilities and drivers

0 Answers   Cap Gemini,


explian qtp frame work and what is the use of it? what is the neceecity of this? explian detail?

2 Answers  


. Types of properties that Quick Test learns while recording?

1 Answers  


How do you handle XML exceptions in QTP (Here it is Exception, not the checkpoint)

2 Answers   CTS, CFC,






What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.

0 Answers  


Explain about the Test Fusion Report of QTP?

1 Answers   Crea,


How to capture data from images in QTP and produce them in Excel sheet ?

4 Answers   iFlex, QA InfoTech,


Which Databases supports for QTP?

3 Answers   CTS,


What r steps to migrate from Manual testing to QTP?(IN BOTH WEB BASED AND WINDOWS APP)

1 Answers   Wipro,


How to run scripts 1,29,3,5,7,2 scripts using test batch runner in QTP.... Ie...I wanted to run scripts not in an order 1,2,3,4,5...like that How it is possible using test batch runner... I dont want hardcoded script

0 Answers   IBM,


what is command for executing files?

0 Answers   VSoft,






Categories