hastebrot
02/03/2017, 6:50 PMLabeled
nodes. if a button has the text "submit" you can use robot.clickOn("submit")
. you can also use `Label`s that define the labelFor
property.hastebrot
02/03/2017, 6:51 PMform.png▾
ron
02/03/2017, 6:52 PMhastebrot
02/03/2017, 6:52 PMrobot.clickOn(q("Zip/City").nth(2)).write("New York")
hastebrot
02/03/2017, 6:53 PMlabelFor
for the Field/TextField pairs.ron
02/03/2017, 6:55 PMhastebrot
02/03/2017, 6:58 PMrobot.clickOn(lookup("Zip/City").lookup(".text-field").nth(2))
. Since <Field text="Zip/City">
has two <TextField>
children.hastebrot
02/03/2017, 6:59 PMrobot.clickOn("[text=Zip/City] .text-field:nth(2)")
(JavaFX, i.e. Node.lookup()
, does not support these CSS3-like queries, but we could add this functionality).ron
02/03/2017, 7:00 PMhastebrot
02/03/2017, 7:00 PMedvin
02/03/2017, 7:09 PMcarlw
02/03/2017, 7:09 PMhastebrot
02/03/2017, 7:09 PMNode
ids, classes and queries allow us to focus on testing the behaviur rather than implementation details. we could even write a GUI test before the corresponding GUI code even exists.
@johnzeringue mentioned "This is consistent with BDD principles: implementation details aren't relevant in testing." in a PR on TestFX's github (https://github.com/TestFX/TestFX/pull/210).ron
02/03/2017, 7:10 PMoverride fun onBeforeShow(view: UIComponent) {
workspace.dock<Mainview>()
}
listeners are not initialized correctly?edvin
02/03/2017, 7:11 PMcarlw
02/03/2017, 7:12 PMedvin
02/03/2017, 7:12 PMhastebrot
02/03/2017, 7:12 PMedvin
02/03/2017, 7:12 PMron
02/03/2017, 7:12 PMron
02/03/2017, 7:13 PMron
02/03/2017, 7:13 PMcarlw
02/03/2017, 7:13 PMedvin
02/03/2017, 7:14 PMedvin
02/03/2017, 7:14 PMron
02/03/2017, 7:14 PMron
02/03/2017, 7:15 PMfilterWhen
does not seem to be executingron
02/03/2017, 7:15 PMcarlw
02/03/2017, 7:15 PMjchildress
02/03/2017, 7:15 PM