plaidshirt
plaidshirt

Reputation: 5671

Record UI elements for TestFX

There is an existing JavaFX based application, which I should write automated tests for. I just started to use TestFX(version 4.0.13-alpha) and looking for advice, how to record and identify UI objects of application. I tried following code to initialize a button, but it couldn't be clicked.

Button button = new Button("click me!");

I found these GUI inspect tools, but not sure, which one could works with TestFX.

Upvotes: 8

Views: 485

Answers (1)

Halko Karr-Sajtarevic
Halko Karr-Sajtarevic

Reputation: 2268

There is a really good documentation about TestFX queries which can be found on github (here). I would use the lookup(<label/buttontext>) version if it's not possible to define IDs on the components.

Upvotes: 3

Related Questions