QTP -object reposistory spy tool is not able to spy the pop
up message appearing in the application, so how is that i
can handle such run time pop ups in QTP by code???
Answers were Sorted based on User's Feedback
Answer / pratap bandagi
use Sendkeys method to Click on the button highlited.
for Example if there are two buttons on the popup use Sendkeys method to click on the default button like {"ENTER"} or {"TAB"} or {"ALT+F4"} so that u can close the popup or perform any operation on the popup.
Is This Answer Correct ? | 6 Yes | 2 No |
Answer / amruta
using shell object
a=10
b=20
set objshell=createobject("wscript")
If b=10+a Then
objshell.popup"b is equal to a"
else
objshell.popup"b is not equal to a"
Is This Answer Correct ? | 0 Yes | 9 No |
How many types of Parameters are available in QTP?
write a qtp script to see time in windows command prompt? its urgent....
What environment does qtp run in?
i have string "I LIKE INDIA"..how to i get LIKE from the sting..
I am sathish , i want to test the Application of JIL.org ,Mobile Emulator ,by using QTP10.0. I am trying to do testing on that Application , but Child Objects are not identified by the QTP. Please can any one help me
How to define array in qtp?
How to use actions in qtp ?
What is the latest version of qtp?
explain all the check point in QTP?
Hi Friends, How to trap an error message on Web page through QTP. Example:- When I put wrong user id or Password on a web page, I get the error message. So when I add the error object in Reposatory, every time it shows as Login Failed Object exist, eventhough using corret login details. And if I do the same without adding the object it shows as object not found. This might be because while recording QTP takes every new page as _1 _2 _3 and so on. as below. Browser("XXXXX").Page("XXXXX_1"). >>login Browser("XXXXX").Page("XXXXX_2"). >>Inbox Browser("XXXXX").Page("XXXXX_3"). >>Sent Items I used below code. Browser("XXXXX").Page("XXXXX").WebEdit("firstname").Set strFN Browser("XXXXX").Page("XXXXX").WebEdit("lastname").Set strLN Browser("XXXXX").Page("XXXXX").WebEdit("userid").Set strUserID Browser("XXXXX").Page("XXXXX").WebEdit("password").Set strPass Browser("XXXXX").Page("XXXXX").WebButton("Login >").Click If Browser("XXXXX").Page("XXXXX_2").Image ("msg_icon_error").Exist 5 Then Reporter.ReportEvent micFail, "XXXXX", "Login Failed!" ExitRun (It shows login failed ever after login is passed. Else Reporter.ReportEvent micPass, "XXXXX", "Login Successful!" End If Please find out a way for me here, and provide me with the correct code. Thanks in Advance.
1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.
How can i check elements sorted in dorpdown using qtp..