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

we have 10 automation scripts. how to call them from one main script.

2 Answers  


Give me some scripts for 1). checking webpage links (counting links,opening web pages,counting child elements)

2 Answers   CIL,


distinguish between old version and new version QTP features.

0 Answers   CTA,


How Qtp will identifies object during run time

6 Answers   CSS Corp, Yahoo,


if there r 10 windows open in QTP write a command to close all 10 windows at a time ?

10 Answers   Wipro,






does test plan is in test strategy or test strategy is in test plan

2 Answers   Tanla Solutions,


What is the difference between the keyword view and expert view?

0 Answers  


What are the Mandatory Properties of WebTable Object and Link Object in Web testing using QTP

2 Answers   iLink,


I have recorded a test over web application(with IE6.0) in analog mode. But, while running it my test gets failed. Why? (Note: my systray has 3 open web applications)

1 Answers  


What is qtpro? What is quick test pro?

0 Answers  


what is aregular expression?

4 Answers   UHG,


How many types of recording facility are available in quicktest professional?

0 Answers  


Categories