I'm trying to write some TestFX code that will loop through a TableView component and check the background colour for each row is set correctly.
What I can't work out is how to actually construct the loop to go through the TableRows as opposed to the actual data. I've tried using sourceTable.getItems()
but that just gives me access to the object containing the data. But I need to go lower down than that and actually examine the background-colour of the CSS tag.
I know that a TableRow has a getStyle function, which will return the data I'm looking for, but I'm at a loss at how to construct the appropriate iteration that will go through each individual row.