Is it possible to direct fxrobot to specific cells/rows in a TableView?

440 views
Skip to first unread message

Otto

unread,
Aug 15, 2016, 9:34:00 AM8/15/16
to TestFX
Hi!
I'm currently using TestFX to build automated GUI tests. It has been going quite well and the framework seems solid. There is however a problem I have been unable to solve.
I use a TableView to display data from a database and would like to automate clicking certain rows in the table. I've been at this for a while now, but there doesn't seem to be a way for the FxRobot to retrieve the location of individual rows, only the table itself.

I am very new to both JavaFX and GUI testing in general, am I missing something here? Or is it just not possible?

Oddbjørn Kvalsund

unread,
Aug 16, 2016, 4:36:08 AM8/16/16
to Otto, TestFX
Hi Otto,

If you assign an unique id to each cell from the cell factory (see http://code.makery.ch/blog/javafx-8-tableview-cell-renderer/), you ought to be able to click it using the standard TestFX click-by-id, no?

Oddbjørn Kvalsund

--
You received this message because you are subscribed to the Google Groups "TestFX" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testfx-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Oddbjørn Kvalsund
Reply all
Reply to author
Forward
0 new messages