List Icon
Mailing list Archive

2019 up to July 2022 | 20182017  |  2016  2015 2014 | 2013

The mailing list has been closed since July 2022, but continues to serve as an archive of information about QF-Test.
But if you want to stay informed about news about QF-Test, you can simply
Subscribe to Newsletter  

To get up-to-date information about each release - including minor releases - you can
subscribe to the RSS feed or follow us on social media.
Alternatively, QF-Test also provides release information itself.

Another source of information is our blog, where there are current articles on general topics, on the company QFS and also various "how-tos"
subscribe to blog


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[QF-Test] ComponentNotFoundException with subcomponent of JDialog


  • Subject: [QF-Test] ComponentNotFoundException with subcomponent of JDialog
  • From: "Griswold, Matthew (RIS-DAY)" <Matt.Griswold@?.com>
  • Date: Tue, 17 Dec 2013 21:49:05 +0000

I’m working with a Java application, and I’m using a Groovy _javascript_ in QF Test to handle the automation.

 

When a search is performed in the application window, a dialog appears soon afterwards with a ‘Processing…’ message and a ‘Cancel’ button.

 

I’m trying to click on the ‘Cancel’ button programmatically in Groovy Java.  However the following statement produces an error.

 

cancelBtn = rc.getComponent("buttonCancel", 10000)

 

class de.qfs.apps.qftest.shared.exceptions.ComponentNotFoundException: Element not found

 

 

I have the above statement in a try catch block inside of a loop which retries the getComponent command every 200 milliseconds, but the statement never passes.

 

I think the problem is related to the ‘buttonCancel’ object is underneath a JDialog window which is separate from the main application.

 

 

I’ve been able to click the ‘Cancel’ button using Record and Replay, but I can’t repeat the same transaction in Groovy Java.

 


The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. This message may be an attorney-client communication and/or work product and as such is privileged and confidential. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message.

PNG image