Search in sources :

Example 16 with NodeQuery

use of org.testfx.service.query.NodeQuery in project TestFX by TestFX.

the class FxRobot method point.

@Override
@Unstable(reason = "might change to accept all objects")
public <T extends Node> PointQuery point(Matcher<T> matcher) {
    NodeQuery nodeQuery = lookup(matcher);
    Node node = queryNode(nodeQuery, "the matcher \"" + matcher.toString() + "\"");
    return point(node).atPosition(context.getPointPosition());
}
Also used : NodeQuery(org.testfx.service.query.NodeQuery) Node(javafx.scene.Node) Unstable(org.testfx.api.annotation.Unstable)

Aggregations

NodeQuery (org.testfx.service.query.NodeQuery)16 Node (javafx.scene.Node)8 Test (org.junit.Test)6 NodeFinder (org.testfx.service.finder.NodeFinder)4 ArrayList (java.util.ArrayList)2 Button (javafx.scene.control.Button)2 Cell (javafx.scene.control.Cell)2 TextField (javafx.scene.control.TextField)2 Region (javafx.scene.layout.Region)2 Unstable (org.testfx.api.annotation.Unstable)1