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
How to use conditional loops in qtp ?
Can we run multiple QTP scripts one after the other without manual intervention? How?
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?
how we connect 1. qtp9.2 to the quality center9.0? 2. Load runner8.0 to the quality center9.0
can u please explain what is the exact difference between qtp8.2 and 9.0
How is UFT 11.5 version different from UFT 12.0?
What kinds of security (firewalls, encryptions, passwords, etc.) will be required and what is it expected to do? How can it be tested?
Explain the Different types of QTP test assets and their extensions?
I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.
How to use parameterization in qtp?
What is object repository in qtp?
How you can decide which type of object repository you have to use?
Where can I find and view run-time data table?
How does quicktest professional (qtp) identifies the object in the application?
How do you do batch testing in wr & is it possible to do in qtp, if so explain?