Skip to content

Commit d396a7a

Browse files
committed
fixed timeout + removed extra warnings
1 parent ce55bc7 commit d396a7a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/main/java/JavaFXLibrary.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ public Object runKeyword(String keywordName, Object[] args) {
8181
AtomicReference<RuntimeException> retExcep = new AtomicReference<>();
8282

8383
try {
84-
// timeout + 100 ms so that underlying timeout has a chance to expire first
85-
WaitForAsyncUtils.waitFor(getWaitUntilTimeout(TimeUnit.MILLISECONDS) + 100, TimeUnit.MILLISECONDS, () -> {
84+
// timeout + 500 ms so that underlying timeout has a chance to expire first
85+
WaitForAsyncUtils.waitFor(getWaitUntilTimeout(TimeUnit.MILLISECONDS) + 500, TimeUnit.MILLISECONDS, () -> {
8686

8787
try {
8888
retval.set(super.runKeyword(keywordName, finalArgs));

src/main/java/javafxlibrary/utils/finder/Finder.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public Node find(String query) {
4040
// TODO: Remove old style lookup queries
4141
// Use TestFX lookup for queries with no prefixes
4242
if (!QueryParser.startsWithPrefix(query)) {
43-
RobotLog.warn("You are using deprecated lookup queries! See library documentation for information about " +
44-
"the updated lookup query syntax.");
43+
//RobotLog.warn("You are using deprecated lookup queries! See library documentation for information about " +
44+
// "the updated lookup query syntax.");
4545
return robot.lookup(query).query();
4646
}
4747

@@ -63,8 +63,8 @@ public Node find(String query, Parent root) {
6363
// TODO: Remove old style lookup queries
6464
// Use TestFX lookup for queries with no prefixes
6565
if (!QueryParser.startsWithPrefix(query)) {
66-
RobotLog.warn("You are using deprecated lookup queries! See library documentation for information about " +
67-
"the updated lookup query syntax.");
66+
//RobotLog.warn("You are using deprecated lookup queries! See library documentation for information about " +
67+
// "the updated lookup query syntax.");
6868
return robot.from(root).lookup(query).query();
6969
}
7070

@@ -97,8 +97,8 @@ public Set<Node> findAll(String query) {
9797
// TODO: Remove old style lookup queries
9898
// Use TestFX lookup for queries with no prefixes
9999
if (!QueryParser.startsWithPrefix(query)) {
100-
RobotLog.warn("You are using deprecated lookup queries! See library documentation for information about " +
101-
"the updated lookup query syntax.");
100+
//RobotLog.warn("You are using deprecated lookup queries! See library documentation for information about " +
101+
// "the updated lookup query syntax.");
102102
return robot.lookup(query).queryAll();
103103
}
104104

@@ -116,8 +116,8 @@ public Set<Node> findAll(String query, Parent root) {
116116
// TODO: Remove old style lookup queries
117117
// Use TestFX lookup for queries with no prefixes
118118
if (!QueryParser.startsWithPrefix(query)) {
119-
RobotLog.warn("You are using deprecated lookup queries! See library documentation for information about " +
120-
"the updated lookup query syntax.");
119+
//RobotLog.warn("You are using deprecated lookup queries! See library documentation for information about " +
120+
// "the updated lookup query syntax.");
121121
return robot.from(root).lookup(query).query();
122122
}
123123

0 commit comments

Comments
 (0)