Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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

what is the syntax or command in vbscript to display user message example i want to display "welcome to QTP".

3 Answers  


How to take screen shot of desktop by using vb script code or is there any method?

1 Answers  


How do you learn the object in QTP?

2 Answers  


What is the extension of the qtp local repository?

0 Answers  


what are the functions availabla in QTP? what are the data types in QTP?

2 Answers   Spry Technologies,






A webPage has a ComboBox with 10 values in it. Write a script to select 4 vales from it using CTRL key

3 Answers   Virtusa,


How to load an object to a object repository at RUN TIME ?

3 Answers  


Reverse a string keeping the words in the string as it is. E.G. "Quick Test Professional" O/P "Professional Test Quick"

1 Answers   Cap Gemini,


Plz Explain AUTOMATION REFERENCE MODEL?

0 Answers  


why the smart identification is not there in WinRunner

1 Answers   DigiTech,


How should I check my code( Before going to execute) without executing the script in QTP

1 Answers  


What is Maximum synchronization time out in QTP(By Default is 20sec). Anybody can answer it. Thanks in advance.

11 Answers   Polaris,






Categories