Whenever we r keeping mouse pointer under the image we r
getting image name. In qtp how can we do this thing.weather
that name is coming or not?
Answers were Sorted based on User's Feedback
Answer / uday
Use the "alt" property to get the tooltip of the image.
Syntax is:
b().p().webimage().getROProperty("alt")
| Is This Answer Correct ? | 1 Yes | 1 No |
Is this ur Question,How to test a icon or other image in
the web site or any window we need to test, have a tool tip
or not.to make sure i got it right.
If so we may use the check point(Image), I hope ,I am
also learning Qtp,so its my idea.Pls correct me if I am
wrong.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / guttapalyam chakrapani
select the particular icon and learn it to Obj repository.
When writing in script
B().p().WebElement().OnMouserOver
This statement will take the text value and store it into a
variable and we can display
solution-----
a=B().p().WebElement().OnMouserOver
msgbox a
| Is This Answer Correct ? | 0 Yes | 1 No |
what is exacltly TIERS ?
Hi All Below is my script which i made for lgin into Flight.exe. SystemUtil.Run "C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\flight4a.exe","","C:\Program Files\Mercury Interactive\QuickTest Professional\samples\flight\app\","open" Dialog("Login").WinEdit("Agent Name:").Set DataTable ("p_Text", dtGlobalSheet) Dialog("Login").WinEdit("Agent Name:").Type micTab Dialog("Login").WinEdit("Password:").SetSecure DataTable ("p_Text1", dtGlobalSheet) Dialog("Login").WinButton("OK").Click If Dialog("Login").Dialog("Flight Reservations").WinButton ("OK").exist Then Dialog("Login").Dialog("Flight Reservations").WinButton ("OK").Click datatable.Value(3)= "Incorrect password. Please try again" Dialog("Login").WinButton("CANCEL").Click elseif Dialog("Login").Dialog("Flight Reservations").WinButton("OK").exist Then Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click datatable.Value(3)="Please enter agent name" Dialog ("Login").WinButton("CANCEL").Click elseif Dialog("Login").Dialog("Flight Reservations").WinButton("OK").exist then Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click datatable.Value(3)= "Please enter password" Dialog("Login").WinButton ("CANCEL").Click else Window("Flight Reservation").Move 309,146 datatable.ExportSheet "C:\Raj\Result.xls" ,1 Window("Flight Reservation").Close End If I want to capture the Message string from Dialog("Login").Dialog("Flight Reservations" Also pls let me know if this is the right way to do the script for login. Pls provide some script for login Flight.exe Thanks in advance Raj Dhiman
Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..
Can u tell me example for virtual objects?
how to reverse a string with out using string or predefined function,ex:string is " i love india". the output should be like this "i evol aidni"
10 Answers Aspire, MNC, Omega,
What is the difference in testing a client-server application and a web application?
h to all plz send me the answer if any one knows about this....i want the java add-ins for the QTP to do my project which is developed under the java platform.
What exactly is the difference among all the three recording modes.
How to invoke QTP through VBscript?Send me full code along with description of the code.Thanks in Advance
What is Unicode Compatibility?
what is object spy
Hi friends I am new in Qtp. now i am Searching on Qtp give real time inter questions with answers.pls help me