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

Can you write User defined function for WebEdit ? Note1: This function can be used for all web edits in all pages Note2: Don't use Child objects method

1 Answers   IBM,


How do u write a regular expression for date (dd/mm/yyyy) field ?

4 Answers   Semantic Space,


Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.

0 Answers   IBM,


WHAT IS THE FRAMEWORK & ARCHITECTURE OF YOUR PROJECT

3 Answers   Wipro,


What is dynamic arrays

1 Answers   Patni,






what is option explicit?

5 Answers  


what is clean sweep?

0 Answers  


what is the use of automation frame work ??(QTP)

2 Answers  


what will be there in keyword view and expert view?

2 Answers  


what is keyword driven framework in qtp.

13 Answers   Cognizant, TCS,


How can I deploye a 'QTP Runtime environment only'

1 Answers   Indexis,


how to use command prompt using qtp?

8 Answers   HCL,






Categories