Hello Friends,
I am working with QTP 9.2 descriptive programming. Can you
please let me know how to work with below.
Browser is IE, for my site, it opens another page with
different browser name, For example Parent Page is
google.com and child page is inteview questions. How to
work with this second page.
Answers were Sorted based on User's Feedback
Answer / prasant87
While working on Parent Page Use Parent's page properties, for e.g.-
Browser("name:=Google").Page("title:=Google").WebEdit("name:=q").Set "QTP Interview Questions"
and when you are working on child page, use corresponding properties (as another page opens up), say e.g. -
Browser("name:=Top 50 QTP Interview Questions").Page("title:=Top 50 QTP Interview Questions").WebElement("outertext:=Home").Click
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / qtphelper
Try using creation time property for the second browser
whihc ocntains the new page
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / chandrashaker rao suguru
ya ,
use discription object.
discription.create
| Is This Answer Correct ? | 0 Yes | 3 No |
Hi I have a doubt in qtp. Can you please clarify my doubt. If we are importing the data from excel sheet in qtp the the script is running the number of row times. I mean if there are 4 rows in excel sheet the script is running 4 times. cant we avoid this. suppose i have tis script: datatable.Import "C:\Documents and Settings\sailaja\My Documents\login1.xls" n = datatable.GetRowCount For i =1 to n systemutil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe" datatable.SetCurrentRow i Dialog("Login").WinEdit("Agent Name:").Set DataTable ("Username", dtGlobalSheet) Dialog("Login").WinEdit("Password:").Set DataTable ("Password", dtGlobalSheet) Dialog("Login").WinButton("OK").Click Window("Flight Reservation").ActiveX ("MaskEdBox").Type "020209" Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt" Window("Flight Reservation").WinComboBox("Fly To:").Select "Los Angeles" Window("Flight Reservation").WinButton("FLIGHT").Click Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click Window("Flight Reservation").WinEdit("Name:").Set "Sailaja" Window("Flight Reservation").WinButton("Insert Order").Click Window("Flight Reservation").WinMenu ("Menu").Select "File;New Order" window("Flight Reservation").Close next I created a excel sheet with 3 rows and 2 columns. (username and password). The script is running 9 times. I made the option run one itaration only . eventhough it is running 9 times .can u plaese clarify my doubt. Thankyou Sailaja.
How to convert non-reusable action into reusable action in QTP?(i know by default QTP will take it as a non-reuable action )(Chandana) plz urgent?
how to recall a function in QTP?
Which functionalities of QTP used in banking project?
what is the use of VIRTUAL OBJECTS? explain ?
10 Answers ABC Infotech, IBM, TCS,
Explain how qtp identifies object?
Can we Run the Tests developed in QTP 8.2 in advanced versions like 9.0, 9.1, 9.2...etc.,
any challange that faced in your project? (please give me some examples in your project?
is it possible to add sheets to excel at runtime
Hi guys, can anyone explain me whats the method for reporting the QTP test results to teamlead or non-QA member (developer/PM)? Thanks in Advance!!!!!
Print the Prime numbers in below format only up to 20(Need commas also) 1,2,3,5,7,9,11,13,17,19
Key word driven framework