WORKING WITH QTP

TestEveryThinG

QTP Forum Ask your queries

Here you can post your queries related to QTP/Automation. We will try to help you guys as we can best from our side.

Thanks
RAJIV KUMAR NANDVANI

154 Responses to “QTP Forum Ask your queries”

  1. Swapna said

    How to handle the recovery scenarion’s please suggest

  2. rajivkumarnandvani said

    Hi Swapna,

    For getting the clear picture of recovery scenario’s please refer to QTP help file, it is the best book for understanding the QTP.

    Best of luck.

  3. Saravanan M said

    In QTP 10.0 I have one scenario. Am executing multiple scripts with the help of driver script, that particular script results are by default stored in test folder. This result I want to export to Excel sheet one by one. For eg If am executing 5 scripts means those 5 scripts results will be in the separate excel sheet. ie Execute one by one the results appended in the excel sheet. Is it Possible? Can anyone of you please help me out in this…..

  4. Srikanth said

    Dear Forum,
    Iam a beginner in QTP. I guess I got a unique problem while recording scripts for gmail. I could record scripts until I login into Gmail but after that I was not able to record anything. Even if I click on “sentmail” link its not recordning anything. Both browser (IE7) and QTP(installed on vista) are getting strucked. I followed all the basics like turn off UAC, disable security for browser etc. Please help me.
    Thanks in Advance.

  5. rajivkumarnandvani said

    Hi Thanks for reading the blog
    First try with object spy are you able to identify or add sentemail link. If yes then first add those objects into OR (object repository).
    OR try to update IE7 to IE8/9.

    Best of luck

  6. Santhi said

    HI

    In my appliicaiton I have a grid with 4 columnn and 18 rows, Here I want get cell possitions for 1 and 3 columns only please could you help me

    Thanks & Regards
    Santhi

  7. Santhi said

    here position mean like 1st position

  8. rajivkumarnandvani said

    Hi Santi,

    Thanks for reading the blog. I thing first you read this it will help you.

    Get cell data from webtable

    OR read qtp help file for webtable

    Best of luck

  9. Adil said

    Hi Rajiv,
    When i click on Test Results button in QTP, its not opening the Test Reults Window but in task manager it is showing as QTReport.exe plz help me.
    Thanks
    Adil

  10. Adil said

    Hi Rajiv,
    When i click on Test Results button in QTP, its not opening the Test Reults Window but in task manager it is showing as QTReport.exe plz help me. expecting your response at the earliest
    Thanks
    Adil

  11. rajivkumarnandvani said

    Use Qtp test result viewer from Start program menu under QTP..

  12. Sheik Adil said

    The Issue is
    When i Execute the Script,While executing 1st time the script works fine in the 2nd iteration in the UserName edit box user name is already present. when the script enters user name and password it shows error as username or password is invalid bcoz the cache is not cleared and in the username edit box user name is already is present so that the reason it creating problem but i’m not understanding how to solve the issue.
    your suggestion will be appreaciated

  13. rajivkumarnandvani said

    Hi Adil,
    delete cookies and cache before run

    Delete Cookies and Temprary internet files VB QTP

    Or u can use qtp delete cookies method

    thanks

  14. Sheik Adil said

    Hi,
    How to Verify the Back,Next and Reset Button Functionality
    How to Write the Code

  15. Gracy said

    Hi,

    Please any one tell me how to handle the error “Unable to launch the browser. The specified browser is not installed” if a new script is recorded in qtp 9.5 using firefox 3.0

  16. Gracy said

    how to communicate one form with another form in web applications. i.e, i need to take the value say Project Code from Order Management Module to Inventory Purchase Requisition. For the project code, the purchase of materials is to be stored. how to test this using the qtp options in 9.5 version?

  17. rajivkumarnandvani said

    Hi Gracy,

    you can use global sheet. get the value from first form and store into global sheet table at runtime. use this value for another form .
    For better understanding just go through the use of Globalsheet OR datatable

    store the value from first form into globalsheet

    DataTable.Value(“A”, dtGlobalSheet)= valueFirstForm

    in another form get the value

    getvalueFirstForm = DataTable.Value(“A”, dtGlobalSheet)

    OR you can use global variable OR environment variable

    Just go thorugh the QTP help file for Datatable, Global variable , Environment variable

    Thanks

  18. Hi,

    You have to record the script in IE then you can run in Firefox. Just Go through the QTP help file for firefox run in QTP.

    Thanks

  19. Gracy said

    IE 8 is not running during recording. Tried using patches also. but even though it cannot be recorded using IE8. what to do for this?

  20. rajivkumarnandvani said

    Hi Gracy,

    Refer this

    QTP does not record the application

    http://testeverythingqtp.blogspot.com/2011/04/qtp-is-not-recording-web-application.html

  21. Gracy said

    After opening IE, it is opening the QTP but with error window stating An unhandled Win32 exception occured in iexplore.exe(2488).

    It is asking like do u want to debug using the selected Debugger?

    How to overcome this?

  22. Ah.. it seems you do not have debugger installed on your system that’s why you are facing the problem.

    Download and install the debugger.

    http://www.microsoft.com/downloads/en/details.aspx?FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&displaylang=en

  23. Gracy said

    After installing the debugger also same problem. After opening the QTP, when opening IE, it is not opening the IE properly with menus and the home page of the given url

    How to handle this error?

  24. Sheik Adil said

    Hi Rajiv,
    I Want to Clear the Cache from the browser bcoz when the Browser Opens the UserName present in the UserName Editbox due to this my script fails
    So Send me if you have Function ClearBrowserCache()
    Thanks & Regards
    Adil

  25. Anonymous said

    Hi All,

    I faced the problem when I installed the QTP in windows 7.QTP was not recording any web application then i tried to check with OBJECT SPY how its identify the web object Object Spy identify the each web object as a winobject.
    Please help me for this query…

    My mail id is: janamumbai93@gmail.com

  26. Hi refer this

    http://testeverythingqtp.blogspot.com/2011/05/qtp-does-not-record-application.html
    http://testeverythingqtp.blogspot.com/2011/04/qtp-11-installation-issueserrors.html
    http://testeverythingqtp.blogspot.com/2011/04/qtp-is-not-recording-web-application.html

  27. Anonymous said

    Hi All,

    After logging in into google home page with gmail credentials, I am trying to get the user name and display it in the msgbox , but the script is not able to identify the webelement object.
    Pls help.

    Thanks in advance
    Rajeev

  28. rajivkumarnandvani said

    Hi rajiv,
    like in my case if i am checking the web element it is showing like this using firebug / ie devlop tool baar
    rajivkumarnandvani@gmail.com so add the span web element with id property (id=”gbi4m1″> ) then get ROproperty of the object.
    Make sure after adding the Object in OR check with object spy you should be able to identify the object

    Thanks

  29. Adil said

    Hi Rajiv,
    I want to regular expressied this

    irPstBlogs:j_id161:0:j_id173:0:j_id178:0:j_id193

    Please give me the solution
    Thanks
    Adil

  30. Try this
    j_id[0-9][0-9][0-9]:[0-9]

    OR
    \d+:\d+
    j_id\d+:\d+
    j_id[0-9]+:[0-9]

  31. Adil said

    Hi Rajiv,
    Its not working the problem is only irPstBlogs:j_id remains constant and digits get change every time
    irPstBlogs:j_id161:0:j_id173:0:j_id178:0:j_id193

    Thanks
    Adil

  32. rajivkumarnandvani said

    It is working fine for me only digits are changing. Please explain wt exactly you want to extract from this string you need only digits or something else?

    OR you can use basic one irPstBlogs:j_id.* it will check all string that is coming after irPstBlogs:j_id

  33. Adil said

    Hi All,

    How to Regular Expressize
    this (100)
    (100000000)
    Help me its Urgent
    Thanks
    Ad

  34. Hi adil,

    First try it at your end and let me know what you have tried and also go through with regular expression without knowing the things you can’t get the knowledge each time Google will not help u or someone else .Please read it @ your end.

    thanks

  35. arvind said

    Hi Rajiv,

    I just started working with QTP 9.2 when i started recording to access gmail login… during the process qtp is identifying browser as window & unable to display the recorder script for login…

    kindly suggest me to go further…

    Regards,
    Arvind

  36. rajivkumarnandvani said

    Refer this

    QTP does not record the application

    http://testeverythingqtp.blogspot.com/2011/04/qtp-is-not-recording-web-application.html

  37. arvind said

    Hi Rajiv,

    I am working on trial version 9.2 on Window 7 Professional, where i had followed all the step which are in the above link, by default i have only 3 add-0n”Active-X, Visual basic, web”..

    Still QTP is identifying the browser as window.. kindly suggest me..

    Window(“Mozilla Firefox”).WinObject(“MozillaWindowClass”).Click 1273,98
    Window(“Mozilla Firefox”).WinObject(“MozillaWindowClass”).Type micReturn
    Window(“Mozilla Firefox”).WinObject(“MozillaWindowClass_2”).Type micBack
    Window(“Mozilla Firefox”).WinObject(“MozillaWindowClass_2”).Type micTab
    Window(“Mozilla Firefox”).WinObject(“MozillaWindowClass_2”).Click 1363,242
    Window(“Mozilla Firefox”).WinObject(“MozillaWindowClass_2”).Click 1292,270

  38. Pradeep said

    In 9.2 version ,you can not record on mozilla browser,that’s why this comes.

  39. arvind said

    Even i tried in IE which displays as below kindly suggest..

    Window(“Windows Internet Explorer”).WinEdit(“Edit”).SetSelection 0,24
    Window(“Windows Internet Explorer”).WinEdit(“Edit”).Set “www.gmail.com”
    Window(“Windows Internet Explorer”).WinEdit(“Edit”).Type micReturn
    Window(“Windows Internet Explorer”).WinObject(“DirectUIHWND”).Click 948,30

  40. Anonymous said

    Hi Rajiv,
    how to set a value in WebElement
    ur suggestion will be appreciated
    Thanks
    Ad

  41. Sheik said

    Hi Rajiv,
    How to set a value in a Webelement.
    ur suggestion will be appreciated.
    Thanks
    Ad

  42. Srinivas said

    how to select multiple rows through QTP. If any one knows could you please help me out

  43. Use keyboard event (send key method) .

    Thanks

  44. Arpan said

    hi rajiv,

    how to upgrade qtp 10 to qtp 11.can you please give the link of reference document.

  45. rajivkumarnandvani said

    Hi
    In QTP 11 installation help file you will find the details.

    Thanks

  46. Arpan said

    hi rajiv,

    how can i get QTP 11 installation help file. i tried on google but unable to find.

  47. rajivkumarnandvani said

    find under qtp 11 installation folder location there you will find help folder, search under it

  48. Anonymous said

    Hi Rajiv,
    I am trying to capture child objects inside an OracleTabbedRegion object, int he following manner
    Set des = Description.Create()
    des(“Class”).value = “OracleTextField”
    Set obj = OracleFormWindow(“Customer File”).OracleTabbedRegion(“Agencies”).ChildObjects(des)

    For i=0 to obj.count-1
    name1 = obj(i).GetROProperty(“name”)
    MsgBox(name1)
    Next
    But this is not getting the object within the tab region. I am using Oracle forms and qtp 10. Can you help

  49. rajivkumarnandvani said

    Hi,
    Use object spy to find out that child objects inside an OracleTabbedRegion are coming under in it or not . In object spy you will find the tree structure where it resides of which object.

    like click on object spy and move the cursor any child object under tabed regin thne see the object spy object structure there you will find the object hierarchy find parent object of the child object then use child object methods for parent object.

    hope it helps

  50. Anonymous said

    Type Mismatch Error Occurs On Files Known To Work

    This one is odd and I cannot figure it out.

    I have been running some complex tests that utilize 8-10 .vbs files that load from a single “main” qtp script. They are loaded in a specific sequence, a case is executed, and then an e-mail is created a sent upon test completion. 2 of the vbs files have been slightly modified to send the e-mail. Data is loaded from an excel sheet.

    This suite of test has been running fine for days. Last Friday afternoon any test I attempt to run immediately fails and posts a Type Mismatch error when attempting to launch Internet Explorer v8. All of these tests were running for days before. A colleague runs the exact same code properly.

    I have not changed a single thing on the test machine. I removed all of the HKEY_CURRENT_USER\
    Software\Mercury Interactive\QuickTest Professional keys using regedit. It did not correct the problem.

    Anyone have any ideas?

    Thanks

  51. rajivkumarnandvani said

    Hi, do comparison ur test machine code & your colleague machine code or use the copy of the code from ur colleague

  52. Automator said

    Hi,

    I am trying to automate a web application. Application has been written with “div” tags instead of “Html”.
    Which add in should I use?
    I tried with Java, Web, Web, ASPAjax but its not getting recorded.
    Please let me know.

    Thanks.

  53. Kotesh said

    Hi Mohan,
    I need your help in QTP . I have so many reports which generates in different format (.html, XLS, PDF and CSV). I have to compare this reports each and summarize the report in XLS in the below way summarize.
    1) How many reports having conflict ##
    2) Report1 having conflicts ##
    3) Report2——-do——- ##

    Whenb I Click on the Num ## It should go to specific report

  54. PatrickJohn said

    Hi all,
    Qtp is taking a lot of time while selecting a value from an array for the web list .For the first time it runs smoothly the next time when it runs the loop each value for different Web list takes atleast 5 min to get selected….can anybody help me out with this what might be the problem

  55. Hi,
    Can you post your code how are you using it..

  56. Payal said

    Hi,

    can anybody plz let me know if we can test UDP packet using qtp. we are using qtp11.0 and have one requirement to send udp packet to server over a udp connection. Plz let me know whether we can automate this requirement using qtp or not

  57. Vimal said

    Hi,

    Can you please help me in coding the following scenario.

    I have a page with lot of .jpg image files.I have to save the image of certain size(240×340) to a folder in my local drive.

    Can you please let me know the coding part of this scenario.

    Thanks,
    Vimal

  58. veerenddra.ginjupalli@gmail.com said

    HI Sir
    IN web page one page two dropdown list one is carmake and other one carmodel. if i selected “TATA” in carmake and carmodel will display all models in the “TATA”. My query is how can automate i selected “TATA” all models covered or not carmodel

  59. Farhana Ashraf said

    Hi,

    I get to know how could we open multiple ie8 instances such that their session could not be shared. I am using qtp 11 and ie8.

    Thank you,
    Farhana.

  60. Vaishnavi said

    In Quality Center, I am trying to create a QTP hostgroup with a host by passing the hostgroup name and hostname as parameters.
    When I give the host group name and host name as strings it works. When I pass them as variables, it doesn’t work.
    Can you please help me with this?

    This is the piece of code that does not work:
    QCHostGroupName = “HOSTGRP1”
    QCHostName = “LABMACHINE”
    Set TSHostGroupFactory = TDConnection.HostGroupFactory
    Set TSHostGroup = TSHostGroupFactory.AddItem(QCHostGroupName)
    Set thisGroup = TSHostGroupFactory.Item(QCHostGroupName)
    Set TSAddHost = thisGroup.AddHost(QCHostName)

    This is the piece of code that works:
    Set TSHostGroupFactory = TDConnection.HostGroupFactory
    Set TSHostGroup = TSHostGroupFactory.AddItem(“HOSTGRP1”)
    Set thisGroup = TSHostGroupFactory.Item(“HOSTGRP1”)
    Set TSAddHost = thisGroup.AddHost(“LABMACHINE”)

  61. rajivkumarnandvani said

    What error are you getting. Please mention that. Try to pass the variable without bracket symbol
    You can check by using msgbox method. Is variable containing the actual value or not.
    QCHostGroupName = “HOSTGRP1″
    QCHostName = “LABMACHINE”
    msgbox QCHostGroupName
    msgbox QCHostName
    Set TSHostGroupFactory = TDConnection.HostGroupFactory
    Set TSHostGroup = TSHostGroupFactory.AddItem QCHostGroupName
    Set thisGroup = TSHostGroupFactory.Item QCHostGroupName
    Set TSAddHost = thisGroup.AddHost QCHostName
    msgbox err.description
    msgbox QCHostGroupName
    msgbox QCHostName

    Thanks

  62. Vaishnavi said

    Thank you for the response, Rajiv.
    The error is “Invalid procedure call or argument”. Code: 800A0005.
    When I pass the variable without bracket symbols I get the error “Expected end of statement”.
    The message boxes are showing the actual values fine.

  63. rajivkumarnandvani said

    Are you using option explicit method in your code if yes then you have to must specify the variables as dim
    Dim QCHostGroupName
    Dim QCHostName
    QCHostGroupName = “HOSTGRP1″
    QCHostName = “LABMACHINE”
    Set TSHostGroupFactory = TDConnection.HostGroupFactory
    Set TSHostGroup = TSHostGroupFactory.AddItem(QCHostGroupName)
    Set thisGroup = TSHostGroupFactory.Item(QCHostGroupName)
    Set TSAddHost = thisGroup.AddHost(QCHostName)

  64. Vaishnavi said

    I am not using Option Explicit. However I have declared Dim statement for the variables.

  65. shashank said

    I am in big trouble please help me as soon as possible,

    The problem is that I have QTP 10.0 on my PC…and it is working fine from last two month…But suddenly the Intellisense is not working at all…I tried it many times by UN-INSTALL it an INSTALL it…But the problem remain the same……

    I am also INSTALL the QTP 11.0 but the INTELLISENSE also not working for this….

  66. Raju A A said

    Hi,

    I have an FlexAdvancedData grid in which there are columns which I need to capture.
    However, When I try with Object Spy QTP is not able to recognize the column headers.

    Can someone help me out?

    Thanks,
    Raju

  67. Sunny said

    Hi Rajiv,

    I recently upgraded to windows 7 with ie8 and None of my QTP scripts work now from QC. I am using QTP 10.0 and QC 10. I would appreciate any help.

    Sunny

  68. rajivkumarnandvani said

    First check are you able to record and run from QTP.
    refer this
    http://testeverythingqtp.blogspot.com/2011/04/qtp-is-not-recording-web-application.html
    http://testeverythingqtp.blogspot.com/2011/04/qtp-11-installation-issueserrors.html

    Thanks

  69. Sunny said

    Hi Rajiv,

    I can run and Record my web app fine using QTP 10.0. But I am having prob when I try to Run from Quality Center .The remote agent starts and Loads the browser(ie 8) it opens the first page and stays there. If I run individually from QTP it runs fine.

    Sunny

  70. Senthilkumar said

    Hi Rajiv,
    This Is Senthil, I have a clarification. i am using QTP10, i have a task- in A site if we give a number and click submit means, the result for the corresponding number will appear. and by using capturebit option i am saving the result page in the a path(For the gradual increasing of the numbers iam using data driven method)
    all works Properly, Now The Problem Is i Have To save The result Page by the name Which is Present in The ” First Row& First Column Of The Table” In the result page. Plz Help Me For the Same

    thanks in Advance
    Senthil

  71. rajivkumarnandvani said

    Hi Senthil,

    refer this http://testeverythingqtp.blogspot.com/2011/07/get-column-names-of-webtable-using-qtp.html

  72. rajivkumarnandvani said

    Hi Sunny,

    QC 9.0 integrates with QTP 8.2 SP1, QTP 8.2 SP2, QTP 9.0, QTP 9.1 and QTP 9.2. To check the compatibility of your QTP version, check out the ReadMe that comes pre-installed with QTP.

    QTP 10.0 provides you the version control feature under the name of Quality Center Version Control present under File Menu. Earlier versions of QTP can work with 3rd party version control tools.

  73. Senthilkumar said

    Hi Rajiv,
    thanks for the quick replay
    i am a beginer in QTP And iam not Eepert in scripting, hance not able to get your point. i used to record and play black my script.
    Here is my Script,
    Browser(“MCA21 : Find CIN/GLN”).Page(“MCA21 : Find CIN/GLN”).WebList(“ROC”).Select “RoC-Chennai”
    Browser(“MCA21 : Find CIN/GLN”).Page(“MCA21 : Find CIN/GLN”).WebEdit(“registrationNumber”).Set DataTable(“p_Text”, dtGlobalSheet)–“Here iam giving the numbers in the Data table”
    Browser(“MCA21 : Find CIN/GLN”).Page(“MCA21 : Find CIN/GLN”).Link(“Submit”).Click
    Browser(“MCA21 : Find CIN/GLN”).Page(“MCA21 : Search Results”).Sync
    ***Browser(“MCA21 : Find CIN/GLN”).Page(“MCA21 : Search Results”).CaptureBitmap DataTable(“p_FullFileName”, dtGlobalSheet)***Here Iam Captuing And Saving The Page(100.png)-Now I Need to Save the page in, name which is present in the table instead of 100.png
    Browser(“MCA21 : Find CIN/GLN”).CloseAllTabs

    senthil.

  74. Hi first read about web table in QTP help file

    there you will find how to get webtable column name store into a variable then pass the variable while saving the page. As you stated that your result is coming in WEB table so you have to get the data from web table. In result page you will find the WEB table

    Rownumber = 1 REM means first row of WEB table KeyColumnIndex = 1 rem first column

    GtCelldata = Browser(“XYZ”).Page(“OBC”).WebTable(“Request Summary”).GetGetCellData(Rownumber, KeyColumnIndex)

  75. Anonymous said

    Hi Rajiv,
    I want to the get the name of the table in order to use(WebTable(“”)) option i am not able to get it.

    senthil.

  76. Anonymous said

    Hi Rajiv,
    Is it Posible to get web Page innerhtml string using QTP, if Yes Means Plz Tell me How.

    senthil

  77. rajivkumarnandvani said

    pageHTML = Browser(“XYZ”).Page(“OBC”).getROproperty(“innerHTML”)

  78. Anonymous said

    Hi Rajiv,

    pageHTML = Browser(“XYZ”).Page(“OBC”).getROproperty(“innerHTML”)

    It works but i am not able get or save any thing using this option. plz tell how to save that html page.

    senthil

  79. tanuj said

    Hi Rajiv,
    my query is for a java application when i select the button (like submit) then a pop up windows are open, in the pop up windows some checkbox or radio button, i want count this check box and select the check box through Qtp.please help for this Query how to write the Query for that.

  80. rajivkumarnandvani said

    For java application you must qtp java addin. If you have just add the object of radio button of that pop-pup window.

  81. tanuj said

    I already added the java addin with Qtp.and also added radio button in OR. but how to write the script for counting and selecting the radio button which are present in pop up window.

  82. Hi you can use index property for checkbox in loop statement using descriptive programming assign index property and find until it does not find the check box object object

    like….

    if JavaWindo(“JXYZ”).Javacheckbox(“Index:=0”).exist then

    checkboxcount =1

    Do
    checkboxcount = checkboxcount +1

    Loop While JavaWindo(“JXYZ”).Javacheckbox(“Index:=”&checkboxcount ).exist

    end if

    msgbox “checkbox count is = ” & checkboxcount

    REM…
    Hope it will work

  83. tanuj said

    hi rajiv thank you so much. my problem has been solved. One more request to you, i m beginner in QTP can you tell me some Good book Making concept and enhance that concept…

  84. suresh said

    Hi, plz help me QTP10 object spy is not showing hierarchy?

  85. rajivkumarnandvani said

    QTP help file

  86. tanuj said

    Rajiv you are not replaying about my blog can you refer any books or any thing where i make a gud basic concept for QTP.

  87. Sandeep said

    Hi,

    I have a page with no of Links(Say Suppose 20).

    Requirement:

    I want to click on every link and calculate the load time of each link and send it to the results which i can store in .xls file.

    In .xls file iam taking the Column names as LinkName,Expected Result,Actual Result and TimeTakentoLoad

    I have an idea like we can make use of MercuryTimers.Timer(“Timer1”).Start and MercuryTimers.Timer(“Timer1”).Stop

    Can anyone suggest me with GoodCoding for the above scenario.

    Thanks,
    Sandeep.

  88. rajivkumarnandvani said

    Hi, use Xenu tool to check each link loading time. basically its’ broken link checker tool just pass the page url. It will check each link of the page and show the loading time of each link.
    Thanks for reading the blog

  89. tanuj said

    Hi,can we pass multiple line input in QTP.if yes so plz tell me how ?
    Thanks
    Tanuj

  90. Anonymous said

    Hi, I need to color some cells in datatable dynamically while running the scripts.please help!!!!!!!

  91. read about working with excel object with VB script.

  92. Anonymous said

    Hi Rajiv,

    Can we retrieve itemscount from virtual table? If so, how we can do that? Please reply me ASAP..

    Thanks,
    Lahari

  93. Anonymous said

    Hi Rajiv,
    I am trying to capture child objects inside an OracleTabbedRegion object, int he following manner
    Set des = Description.Create()
    des(“Class”).value = “OracleTextField”
    Set obj = OracleFormWindow(“Customer File”).OracleTabbedRegion(“Agencies”).ChildObjects(des)

    For i=0 to obj.count-1
    name1 = obj(i).GetROProperty(“name”)
    MsgBox(name1)
    Next
    But this is not getting the object within the tab region. I am using Oracle forms and qtp 10. Can you help

    the solution you have given earliet to look into the hierarchial tree, actually it does not list all the bojects in the tabbed region…hence not recognizing those objects

  94. Did you try this??
    Set obj = OracleFormWindow(“Customer File”).ChildObjects(des)

    means all objects in oracleformWindow, might be your expected object present inside the window instead of tabbed region.

    Thanks

  95. nani said

    Hi , how to get web Application inner text

    please give some examples scripts

  96. Uma said

    How to select multiple Webelements , when Ctrl or shift button is used to selecct multiple webelemnts manually.

    this is the function i used but not unable to select the multiple items.

    Set WshShell = CreateObject(“WScript.Shell”)
    Set web1=description.Create()
    web1(“micclass”).value=”WebElement”
    web1(“html tag”).value=”NOBR”
    Set web2= Browser(“xxxxx”).Page(“xxxx”).Frame(“xxxx”).ChildObjects(web1)
    For i=0 to web2.count-1
    If web2(i).getroproperty(“innerhtml”)=”History Summary” Then
    WshShell.SendKeys “+^”
    web2(i).click
    End If

    If web2(i).getroproperty(“innerhtml”)=”Times” Then
    WshShell.SendKeys “+^”
    web2(i).click
    End If

    If web2(i).getroproperty(“innerhtml”) = “Distances” Then
    WshShell.SendKeys “+^”
    web2(i).click
    End If
    Next

    can any one Help me on this

    Thanks in advance
    Uma

  97. Kiran said

    Please some one answer for following question.
    1) Having A and B modules which using objects from shared object repository.
    2) Now We are going to automate New C module. Where we need to Add C module objects in above object repository.
    3) The movement i tried to add objects in above shared repository,it’s not allowing and creating new object repository for C module.
    4) How to solve above problem, Here question is, even for C module also need to add required objects in shared object repository which even using for A and B modules also. That means there should be only one Object repository for all three modules. It would be really great if you can respond at earliest. Please provide me simple steps to understand better bcz i am new to this

  98. Styris said

    I recorded a Script where there are check boxes within a windows panel in a grid. However on Running the script it does not check that checbox in the grid but instea runs another Object’s property on the Windows panel. It has recorded an SwfWindow.SwfCheckbox from the main panel. However I had actually recorded a checkbox within a grid that had the class name of SwfObject.grid.

    Attaching the screenshot. In there I had actually. while recording, clicked on the checkbox next to the Order no. 6478207 in the grid. However it recorded a random objecy in the left Windows panle that is not even a check box. Please help.

    Also this is with version 9.2..as an FYI.

  99. Pradeep said

    Hi rajiv,
    I am working on a dot net based application and if i spy ,QTP doesn’t identify as webtable but webelement. i want to verify that middle name edit field (in an application form) is present in between first name and last name.

    also i want to verify that there are 2 sections in the page which contains applicant and co-applicant section. consider this is an application form for a customer.

    (on spy qtp doesn’t identify as webtable or frame……)

    Please give your suggestion, i am using QTP 10

  100. Gabriel said

    Hi,

    I’m connecting oracle db from QTP using the following steps
    Step 1: set conn=Createobject(“ADODB.Connection”)
    Step 2: Srvname=”Driver={Microsoft ODBC for Oracle}:Server=153.39.128.176;UID=abc;Password=password123″
    Step 3:conn.open Srvname
    Step 4:Set Rec = CreateObject(“ADODB.Recordset”)
    Step 5:SQL=”select count(*) from complianceprogramcode”
    Rec.open SQL ,conn

    In steps 3: it prompts for the error message “Format of the initialization string does not conform to the OLE DB specification”

    I do not know the server name so gave the ip address of it.

    Note: The oracle db is not connected at our end. It is installed in the client place remotely and we are accessing it through oracle client software

    Please let me know the steps to the connect to database and retrieve data from table

  101. Sim said

    Hi
    I am trying to select a date from the calendar on a sharepoint based application using QTP 10.0. Although, it opens the calendar and points to the date as 16 Feb 2012, but is not able to select and capture the date in the desired box.
    Please let me know how to capture the DATE from the calendar.

  102. I can’t say anything without analyzing the date calender object. might be it is using fire event operation. I you should use fire event method, after opening the calander box. select calander object then click date field.
    like in ruby(watir), I have used in my application:
    begin
    @log = @test.getLogger
    sleep(10)
    # click date calender editbox
    @browser.div(:id ,”fieldsContainer”).text_field(:id,/ItemTagSearchWidgetGameDate/).fire_event(“onclick”)
    @log.debug(” Click game date calander editbox”)
    rescue Exception => e
    puts e.to_s
    @log.debug(” Did not find game date calander editbox”)
    raise Exception.new(“Did not find game date calander editbox”)
    end
    begin
    # select date from calender
    @browser.div(:id ,”dateSelector”).cell(:id, “cell01”).link(:text,/.*/).fire_event(“onclick”)
    # get selected date
    if @browser.div(:id ,”fieldsContainer”).text_field(:id,/ItemTagSearchWidgetGameDate/).value.downcase.include?(“click here to pick a game date”)
    @log.debug(” No game date selected from date calender box”)
    raise Exception.new(“No game date selected from date calender box”)
    else
    selecteddate = @browser.div(:id ,”fieldsContainer”).text_field(:id,/ItemTagSearchWidgetGameDate/).value
    @log.debug(” Selected game date value ” + selecteddate)
    sleep(10)
    end
    rescue Exception => e
    puts e.to_s
    @log.debug(” Did not find game date calander box”)
    raise Exception.new(“Did not find game date calander box”)
    end

  103. Sim said

    Thanks for replying. Will try this.

  104. Anonymous said

    Can someone please respond to my post from 02/10/2012 ?

  105. Anonymous said

    Can someone reply to my message from 02/10/2012 ?

  106. Sim said

    Hi, In continuation to my previous email , I am using the below code and it shows Error –
    ‘Failed to run the test due to an unknown error.’

    Browser(“ABC Home”).Page(“Add Standard”).Image(“Select a date from the”).Click 10,5
    Browser(“ABCHome”).Page(“Add Standard”).Frame(DatePicker).webtable(“M”).webelement(“Date”).FireEvent(onmouseclick)

    Please suggest how to resolve this error.

  107. Hi

    onmouseclick is not in double quotes it should be like this

    Browser(“ABCHome”).Page(“Add Standard”).Frame(DatePicker).webtable(“M”).webelement(“Date”).FireEvent(“onmouseclick”)

  108. Sim said

    Hi.

    I am still getting the same error using the below code and using QTP10.0 :
    ‘Failed to run the test due to an unknown error.’

    Browser(“ABC Home”).Page(“Add Standard”).Image(“Select a date from the”).Click 10,5
    Browser(“ABC Home”).Page(“Add Standard”).Frame(DatePicker).webtable(“M”).webelement(“Date”).FireEvent(“onmouseclick”)

    Please suggest.

  109. just check in debug mode, in which line it is throwing an error.

    like here Frame object DatePicker is not in double quotes Browser(“ABC Home”).Page(“Add Standard”).Frame(“DatePicker”).webtable(“M”).webelement(“Date”).FireEvent(“onmouseclick”)

  110. Pradeep said

    Hi Rajiv,
    i want to compare bitmap checkpoint using descriptive programming(i have three logos to verify) can you please help me to resolve this.
    thanks in advance. Pradeep

  111. Sim said

    Hi Rajiv.

    Now, I am getting an error wher it says,

    Cannot identify “Date Picker” object .

    Browser(“ABC Home”).Page(“Add Standard”).Image(“Select a date from the”).Click 10,5
    ‘Updated by test maintenance run

    Browser(“ABC Home”).Page(“Add Standard”).Frame(“DatePicker”).webtable(“M”).webelement(“Date”).FireEvent(“onmouseclick”)

    Please help in resolving this issue and also how do I run the script in Debug mode ?

  112. use F11 to run in debug mode. Check in Object repository whether object is present or not . use highlight option in OR(Object Repository) to highlight the object in application.

  113. Sim said

    Hi Rajiv .
    I’ve updated the code for the date picker line

    From
    Browser(“ABC Home”).Page(“Add Standard”).Image(“Select a date from the”).Click 10,5
    ‘Browser(“ABC Home”).Page(“Add Standard”).Frame(“DatePicker”).webtable(“M”).webelement(“Date”).FireEvent(“onmouseclick”)

    to
    Browser(“ABC Home”).Page(“Add Standard”).Image(“Select a date from the”).Click 10,5
    Browser(“ABC Home”).Page(“Add Standard”).Frame(“Frame”).webtable(“M”).webelement(“Date”).FireEvent(“onmouseclick”)

    and it still shows –

    The “Frame” object was not found in the Object Repository.

    Check the Object Repository to confirm that the object exists or to find the correct name for the object.
    Check the Object Repository to confirm that the object exists or to find the correct name for the object.
    Line (16): “Browser(“POLO Home”).Page(“Add Policy Standard”).Frame(“Frame”).webtable(“M”).webelement(“Date”).FireEvent(“onmouseclick”)”.

    Although, it opens the Calendar in that frame and highlights today’s date,
    but is not able to selects the date and fill the required field fro the date by picking from the calendar.

    Please suggest.

  114. Sim said

    Hi Rajiv.

    Could u plz reply back to my query posted on February 29, 2012 at the earliest?

    Thanks.

  115. Shubha said

    We have a web based Billing system ready for automation testing.What is the best way to automate testing?
    Should we have a Server where QTP needs to installed or do we need to install it on all the tester’s machines?

  116. Darshan kasliwal said

    How to integrate mozila firefox or google crome with qtp 9.2 for recording.

  117. kirankadam said

    Hello Rajiv,
    I installed qtp 10 on my window 7.
    I just record & playback recorded script but it is showing error
    The test run cannot continue due to an uncoverable error.
    Cannot find the “SysListView32” Object’s “Start menu”(class Window).Verify that
    parent properties match an object currently displayed in your application.
    Line(1):”Window(“Start menu”).WinListView(“SysListView32″).Select”Right”.
    I follow your instruction & check each setting but problem is not resolved.
    Please help me.
    Thanks in Advance
    Kiran

  118. Jnaneswari said

    Hi Rajiv,
    how to work with dynamic links in QTP

  119. Rajesh prasad said

    Hi rajiv,in my web application i need to select current day+ 15 days.if u have code send to this id ysnprasad2003@gmail.com

  120. Anonymous said

    Hi Rajiv,

    Help needed on understanding the Properties and Methods related to a ActiveX control.

    I am working on Automating a legacy application(developed using VB 6.0 and FarPoint ActiveX controls)using QTP Ver 11 (with ActiveX, VB, .Net Add-ins..

    Here is a piece of script written by one of x-team mates (who left the organization), to get the caption of available menus and sub-menus in the Sidebar (it is an ActiceX control)

    set objMainmenu = VbWindow(“frmC2000”).ActiveX(“SSListBar”).Object.Groups
    For i=1 to objMainmenu.count
    print “Main Menu = ” & objMainmenu.item(i).caption
    For c= 1 to objMainmenu.item(i).listitems.count
    print “Sub Menu = ” & objMainmenu.item(i).listitems.item(c).text
    Next
    Next

    I’m able to understand the flow of the script. A reference object “objMainMenu” has been created in the first line. ActiveX “.Object” is being used to get access the Native property “.Group”

    I have no clue on how the other properties / methods are identified and being used ( like objMainmenu.item(i).caption ; objMainmenu.item(i).listitems.item(c).text ) in the script.

    Are there anyways to figure out all the available properties & methods related to “objMainMenu” ?

    Can someone please help me?

    Note:
    I ran the script in debug mode.. and used QTP’s “Add to watch” feature to see the reference object (objMainMenu) properties by expanding the object. But it did NOT work. On run-time, under the “Add to watch” section – the objMainMenu just showed as “object”.

    Thanks!
    EmmDee.

  121. EmmDee said

    Hi Rajiv,

    Help needed on understanding the Properties and Methods related to a ActiveX control.

    I am working on Automating a legacy application(developed using VB 6.0 and FarPoint ActiveX controls)using QTP Ver 11 (with ActiveX, VB, .Net Add-ins..

    Here is a piece of script written by one of x-team mates (who left the organization), to get the caption of available menus and sub-menus in the Sidebar (it is an ActiceX control)

    set objMainmenu = VbWindow(“frmC2000”).ActiveX(“SSListBar”).Object.Groups

    For i=1 to objMainmenu.count
    print “Main Menu = ” & objMainmenu.item(i).caption
    For c= 1 to objMainmenu.item(i).listitems.count
    print “Sub Menu = ” & objMainmenu.item(i).listitems.item(c).text
    Next
    Next

    I’m able to understand the flow of the script. A reference object “objMainMenu” has been created in the first line. ActiveX “.Object” is being used to get access the Native property “.Group”

    I have no clue on how the other properties / methods are identified and being used ( like objMainmenu.item(i).caption ; objMainmenu.item(i).listitems.item(c).text ) in the script.

    Are there anyways to figure out all the available properties & methods related to “objMainMenu” ?

    Can someone please help me?

    Note:
    I ran the script in debug mode.. and used QTP’s “Add to watch” feature to see the reference object (objMainMenu) properties by expanding the object. But it did NOT work. On run-time, under the “Add to watch” section – the objMainMenu just showed as “object”.

    Thanks!
    EmmDee.

  122. Narendra said

    Hi Rajiv, IE 7 crashes when recording on SAP Net weaver via portal. IE7 crashes when i try to select value from drop-down list. I works fine for others in my team. This is happening after i installed patches. Any idea what might be the problem.

    WindowsXp SP3
    IE7
    QTP11
    Patches: SAPQTP_00012 & QTP_00709

  123. Anonymous said

    Hello Rajiv,

    Thanks a lot for your explanation to regular expressions, it is really helpful.
    I am finding difficult to achieve a requirement, in .xls I have a column to say yes or no to tell whether that set of test data has to be run for a scenario. In QTP settings, I am setting to run all the rows of the .xls sheet and I am using the variable TestIteration in system environment variables to set the row count in my script, every time the script runs. The requirement here is if I say no, I want in the results viewer not to display that iteration being run. How can I skip this iteration to be displayed on the results viewer.

    Thanks
    Kumar

  124. Abhijeet Pandey said

    Hi Rajiv,
    I am automating a web application using qtp 9.2. It is developed in .NET. It uses fpspread control. But fpspread is not recognised by qtp as web table but it is used in the application as a table. QTP recognizes it as a web element. We have also installed .NET plugin for QTP but no use. Every time we use spy for different cells in any row it displays the name of the parent table as the content of the first row first column. It displays the cell of the web table as web element.
    Please reply if you have any solution how automate fpspread control in web application using qtp.

  125. Timothy McCormick said

    I am running a script that will start qtp on another machine. It uses psexec to run a file that runs a vbs script that should start qtp. The problem is that it no longer seems to work. I go on the machine and the script is run but QTP does not start. If I go onto the machine and run the file then qtp starts with no problem. The QTP that I am using is QTP 11. The vbs script is as follows

    Dim obj_QuickTestApp ‘ As QuickTest.Application ‘ Declare the Application object variable
    Dim strScriptPath ‘ Path of QTP Test To Run

    ‘ Open QuickTest
    Set obj_QuickTestApp = CreateObject(“QuickTest.Application”) ‘ Create the Application object
    obj_QuickTestApp.Launch ‘ Launch QuickTest
    obj_QuickTestApp.Visible = True ‘ Set QuickTest to be visible

    strScriptPath=”c:\InstallNew”
    ‘ Run The QTP Test
    obj_QuickTestApp.open strScriptPath
    obj_QuickTestApp.test.run

    Msgbox “Smoke Test Completed”

    ‘ Quit QuickTest
    obj_QuickTestApp.Quit
    Set obj_QuickTestApp = Nothing ‘ Release the Application object

  126. Rajesh said

    Hi Rajiv,
    I am using QTP Version 10 and Flash Version 10.2 . Here i can record the flash web application but am unable to play it fully . For an eg: I can record from url loading page till login page and then can i can navigate into the application. But when i try to play it back it displays upto till the login page and the result summary shows as passed… Please help me

    Regards,
    Rajesh

  127. Anonymous said

    i just want to double click a particular row in windows application so can u plzz help me out with it.
    since i am not able to use “activaterow” as available.

  128. evgeny said

    Hi dear forum.
    Working with Virtual Table and Q-T application.

    Hi,

    I am trying to build a tests for QT + C++ application using QTP 11.
    My application in simplify view is several fields to be filled (list, checkbox, text, …) and button “Add” – which is add them to displayed table ( I am not dealing with database tables).

    QTP does not recognize the objects of the application, only main windows (QTP recognize them as QWidget).

    I am trying to setup Virtual Objects to accomplish my task.

    Generally I have 2 issues – with Virtual List and Virtual table.

    Virtual Table:
    1). How can I create virtual table object, if when I setting up virtual object, the table is empty? I mean, I cannot define num. of rows in the Virtual Object Creation dialog, because rows will be added / removed from the table dynamically.

    2). How can I handle new row added / deleted in virtual table? I know, that on regular table I can use something like Get Row Number functions, as well as just use property Rows. But this function is not available for Virtual Table, and Rows property will return pre-defined number of rows (entred in the Virtual Objects dialog).

    3). When my table is defined in some pre-defined size on the form (liek 300 px width, 200 px height). When number of rows is growing up, and not all rows can be displayed in the table – scroll bars will appeared. How can I select and test rows that I need to scroll to?

    Thanks a lot!

  129. leelu said

    Hii

    I joined in a company and start the automation testing as a fresher.

    i deal the web based java project.
    please help me how to start the automation using QTP 10.
    Now i am creating code for login but can not run in IE

  130. Anonymous said

    Hi,

    I am working in a QTP project. I have a script where I am calling two different scripts. Example TestMain is main script and Test A and Test B I am calling inside TestMain. In Test A I am using a function to get value from DB and writing this value in Global sheet of Test A. In Testmain I am using that variable from datatabel(Global sheet of TestMain). I am able to print that variable value, but when I pass that value in a function to get another value from DB, it gives error 424 at Recordset.Execute(query). when I catch query in debug mode and execute that query, it works fine in DB. Test was running fine before 1 week, i didn’t make any changes in that suddenly it stooped working.

    Thanks

  131. neenu said

    Hi Rajiv,

    I am trying to select a particular value from a weblist using QTP. The value is identified and highlighted, but it is not getting selected to the weblist

    Source_Accnt=”Access V” ‘TEST DATA
    Src_Accnt=Browser(“browser”).Page(“page”).WebList(“list”).GetROProperty(“all items”)
    Src_list=split(Src_Accnt,”;”)
    For i=0 to ubound(Src_list)
    Accnt_Source=Src_list(i)
    If instr( Accnt_Source,Source_Accnt) Then ‘EXPECTED DATA IS “Access V…$57,689.65”
    Browser(“browser”).Page(“page”).WebList(“list”).Select Accnt_Source
    Exit For
    End If
    Next

    The script is run without any error. In application the weblist still displays the defeault value “Please select”. If we expand the weblist, “Access V…$57,689.65” value is highlighted in the list.

    Could you please help me with the code so that the weblist displays the highlighted value?

    Thank you

  132. vager said

    Hi All,

    Please help out in writing the script for the drop down list …..
    Main points:
    1) It is a text box
    2) If click on drop down Image Example “V” the list of Element are displayed.
    3) The list displayed as WebElements
    4) The WebElements dosent have unique properties even after using index values
    5) The Hierarchy for selecting web elements is Browser – Page – WebElement….

    The bleow code may help You

    ##Clicking on Drop down image##

    Set DropImage = Description.Create
    DropImage(“class”).Value=”x-form-trigger x-form-trigger-arrow”
    DropImage(“name”).Value=”Image”
    Browser(“title:=.*”).page(“title:=.*”).Image(DropImage).Click

    ##Web Edit box##
    Set Welements = Description.Create
    Welements(“class”).Value=”x-form-field x-form-text ”
    Welements(“html tag”).Value=”INPUT”

    If Browser(“title:=.*”).page(“title:=.*”).WebEdit(Welements).Exist then
    Reporter.ReportEvent 0,”res”,”First Name text field is present”
    else
    Reporter.ReportEvent 1,”res”,”First Name text field is not present”
    End if

    ##Web Eelemetns##
    Set ObjDropValues = Description.Create
    ObjDropValues(“micclass”).Value = “WebElement”
    ObjDropValues(“class”).Value = “x-combo-list-item.*x-view-highlightrow.*”
    ObjDropValues(“innertext”).Value = “I.*”
    ObjDropValues(“html tag”).Value=”DIV”
    Set cnt=Browser(“title:=.*”).page(“title:=.*”).ChildObjects(ObjDropValues)
    msgbox cnt.count

    For i=0 to cnt.count-1
    Browser(“title:=.*”).page(“title:=.*”).WebElement(ObjDropValues).GetROProperty(“innertext”)
    next

    Pelase help me out on this

  133. Anonymous said

    Hi, need your help , for eg if i want to automate the update profile link in g mail, how can i write this link as a function, and this function should be able to read all the values from the action, and it should be able to modify the values only which i pass from the action, and the other values should remain the same,

  134. rashmi chauhan said

    Hi I need your help I am new in QTP I want to ask before start recording it is important to add object in Object Repository.

  135. sandeep said

    I AM a qtp beginner. I have a scenario in flight reservation application(windows),where the login dialog box should close after 4 attempts .how to handle this

  136. gurvinder Singh said

    Dear Rajeev,

    Can you please explain whether Automtion Framework is dependent on the automation tool or not? if yes/no how?

  137. ramu said

    i am a qtp beginner . how to write the scenario,s and how to prepare as well as improve the knowledge

  138. ramu said

    which version of qtp support which versions of Ie mozilla firefox’s

  139. Venkatesh said

    Hi,

    I am using QTP to test windows bases application.I need to set a radio button of radio group.

    I am set option SwfWindow(“Storage Repository Provisionin”).SwfRadioButton(“iSCSI”).Set

    But QTP is not checking the radio button and it just gets stuck at that step and does not go forward nor throws up any error.

    How to check the radiobutton?

  140. Ruchi Mishra said

    Hi,
    I am having one issue in selecting the disable objects from weblist. Manualy i cant select disable weblist value but my script is selelcting disable value.

    could you please help me, how to solve this issue.

    Thanks
    Ruchi

  141. Anonymous said

    Hi ,
    While executing QTP script from QC I get following error “Unable to create the specified run results folder” any info on which folder I need to provide permissions.

    Thanks & regards
    Shivram

  142. Anonymous said

    Hi,
    dim oIE
    set oIE = createObject(“InternetExplorer.Application”)
    oIE.visible = true
    :
    all the same
    :

    but its not working
    its showing me ‘General error’ while running.

    when I edit the code to

    Dim oIE As Object : its showed me Run time error
    :
    same
    :

    I am using IE 8.0
    QTP 9.5

  143. check are you able to create folder/file on that location manually.It seems access rights to create on that location. Read some thing about file system

  144. before select the element/object Just check the property of that object/element is it visible/display false/true?.

  145. Mathew said

    Hi im using QTP 9.5 trial version in windows 7 32bit…while recording sample flight application it generating
    Window(“Program Manager”).WinListView(“SysListView32”).Activate “flight3a – Shortcut”
    Dialog(“Login”).WinButton(“Cancel”).Click
    Instead of SystemUtil.Run…while running it throws some unrecoverable error”Object not visible line 1″
    so please help me …SystemUtil.Run is not Recording..What shall i do

  146. Vraj said

    Hi,

    If the “Logout” link is present in the MouseOver Dropdown,
    For this scenario can u give the Code
    How to proceed the Click Operation?

  147. tejesh said

    Hi,

    I am working with QTP 10.0 version When I am giving instruction by recording mode I can understand one query

    Browser(“ABC Home”).Page(“Add Policy”).Image(“Select a date from the”).Click 10,5
    In the above can I know the meaning of 10, 5 date format when i selected from calender pop up button system is displaying like this..

  148. tejesh said

    Hi,

    I am working with QTP 10.0 version When I am giving instruction by recording mode I cannot understand one query

    Browser(“ABC Home”).Page(“Add Policy”).Image(“Select a date from the”).Click 10,5

    In the above can I know the meaning of 10, 5 date format when i selected from calender pop up button system is displaying like this..

  149. Anonymous said

    Hi,

    I am working with QTP 10.0 version and I am unable to select the list items present under webtables ( ex : Frame–>Webtable1–>webtable2–>webtable3–>SAPList( items)) here I am able to view the webtables while object spying and if we add the SAPList the SAPList will add directly to the Frame.

    Can you please help me in this .

    Note : this is SAP web application.

    Sreekanth

  150. prabi said

    Hi All,
    I have one application. i need to enter the data in a web table. web table row dynamically changes.
    step 1: after clicking on Add button one row will be added.
    step 2: 1st row 2nd column is the webelement (its a dropdown) before selecting the drop down 1 st row 3 rd column is webelement. once 1 st row 2 nd column drop down is selected then the 1 st row 3 rd column webelement is changed to WebEdit.

    Using child object and child item i am unable to handle it. Could you please let me know how to handle this scenario.

    Thanks
    Prabu

  151. diksha said

    Hi,

    While proceeding with automation of my web application am getting stucked while reading file name on a popup at the bottom of the page contains the options ‘Open’, ’Save’ and ‘Cancel’ in win 7 + IE11 environment,

    In my web-based application, I need to check the file name and then after reading file name , close it.
    But I have that in IE9, am getting a popup at the bottom of the page contains the options ‘Open’, ’Save’ and ‘Cancel’ with the message ‘Do you want to open or save XXXXXXXX.xls from XXX.com?’.
    In this situation, QTP 10 is not identifying as a WinObject with a native class of DirectUIHWND. None of the content inside the popup is identified by QTP.
    Can someone please provide me solution to come out of this issue, so that it is really helpful.

  152. mukul said

    Hi,
    I am working with QTP 11.0 version and not able to run any test, showing me this error.

    Cannot find the “Cancel” object’s parent “Login” (class Dialog). Verify that parent properties match an object currently displayed in your application.

    Line (1): “Dialog(“Login”).WinButton(“Cancel”).Click”.

    Tip: If the objects in your application have changed, the Maintenance Run Mode can
    help you identify and update your steps and/or the objects in your repository.

  153. Pravin said

    Hi,
    i am working on QTP 12.53 and I am just doing Login automation .But i am facing this problem..
    Cannot find the “WinObject” object’s parent “Start menu” (class Window). Verify that parent properties match an object currently displayed in your application.

  154. Make sure u able to highlight the object on which u are going to work. is QTP
    able to record those element.

Leave a comment