Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP does not recognise elements randomly
#1
Not Solved
Hello ,

I have following code which i have created using record and play and minor tweaking :
Code:
JavaWindow("StorageManagement").JavaDialog("Add").JavaEdit("JTextArea").Set(fData)
If  JavaWindow("StorageManagement").JavaDialog("Add").JavaButton("OK").Exist(2000)
Then
JavaWindow("StorageManagement").JavaDialog("Add").JavaButton("OK").Click
Else
Reporter.ReportEvent micFail, "Add_Appliance " , "OK button is not visible/appliance can not be added"
ExitTest
End if
' Verify if appliance was added
If JavaWindow("StorageManagement").JavaDialog("JDialog").Exist(30) then
    Reporter.ReportEvent micPass, "Add_Appliance " , "Appliance can not be added"
    ExitTest
       End if


In this code my QTP code randomly stops recognizing elements in lines like:
Code:
JavaWindow("StorageManagement").JavaDialog("JDialog").Exist(30)
OR
JavaWindow("StorageManagement").JavaDialog("Add").JavaButton("OK").Exist(2000)
OR
JavaWindow("StorageManagement").JavaDialog("Add").JavaEdit("JTextArea").Set(fData)
Does this have something to do with Object Repository or some setting?
Some times it fails, sometimes it pass , sometimes when i click on retry the step .. it goes ahead and pass.

Plz advice , I am amused at this point in QTP
Reply
#2
Not Solved
As mentioned at the top, please ensure to put all your codes in code tags.

To me this looks like a sync issue rather than object identification issue.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Not Solved
How can i get rid of this issue ?
What can be done to make this test case pass everytime?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Object doesnot recognise lakshmikanth 0 1,116 12-18-2017, 04:10 PM
Last Post: lakshmikanth
  UFT support for SVG elements Sanjana1987 0 1,534 12-01-2017, 02:14 PM
Last Post: Sanjana1987
  How to identify SVG elements from web application Sanjana1987 0 1,935 02-07-2017, 08:30 AM
Last Post: Sanjana1987
  UFT not recogniziing Java Objects/ Elements YogeshCallappa 0 2,256 11-08-2016, 02:43 PM
Last Post: YogeshCallappa
  Compare WebTable Elements saraiado 1 2,553 06-11-2015, 06:54 PM
Last Post: venkatesh9032

Forum Jump:


Users browsing this thread: 2 Guest(s)