Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP9.5 - Java Object recognition
#1
Solved: 11 Years, 4 Months ago Question 
Hello,

I'm facing a problem with QTP 9.5 and a Java application.

The application contains a JToolbar.
The JToolBar contains three JButtons that I want to use in a test.

The trouble is that when I record a click on one of them and then launch the test, I've got the message : "Object is disabled".

When I try to add all the objects of the application, the JButtons are not detected.


I noticed that the "enabled" property of the JTollBar equals 0 (for the JButton it's 1). Maybe QTP think that disabled objects can only contains disabled objects or can't contains objects.


The following script which count the number of JToolBar in the application returns 1 :
Code:
Set chld=Description.Create
chld("toolkit class").value = "javax.swing.JToolBar"
Set chldcln = JavaWindow("MyApplication").ChildObjects(chld)
msgbox chldcln.count

And the same script with "javax.swing.JButton" returns 0.

I don't know how to solve my problem Sad

Thanks in advance!
Reply


Messages In This Thread
QTP9.5 - Java Object recognition - by SAKDOSS - 07-23-2009, 03:01 PM
RE: QTP9.5 - Java Object recognition - by SAKDOSS - 07-23-2009, 04:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems with Text color recognition Treirk 0 1,104 06-17-2019, 12:19 PM
Last Post: Treirk
  object recognition issue by qtp 11.0 shipu 1 2,530 07-24-2014, 05:57 PM
Last Post: Ankesh
  QTP 11 and VB Object Recognition LauraShadle 0 1,921 06-10-2013, 08:27 PM
Last Post: LauraShadle
  QTP vb treeview object recognition error skozer 1 3,635 12-29-2012, 05:00 AM
Last Post: Ankur
  Object Repository recognition problem Adam82 4 4,299 06-14-2012, 09:01 PM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)