Comments (7)
I also reported this issue to https://javafx-jira.kenai.com/browse/RT-35317.
from testfx.
I'm not sure that this is a JavaFX bug at all. What I am sure of however, is that my implementation of clearTextIn
was obviously way too rushed.
TestFX is supposed to simulate user actions -- threads shouldn't matter. ´textField.clear()´ is not a user action. I'll rewrite it.
from testfx.
Yes, this is clearly a TestFX bug, I already commented that to the JavaFX ticket.
from testfx.
The fix really shows the clumsyness in the current implementation (having to instantiate a new GuiTest with a getRootNode
that returns null)...
from testfx.
Hi.
I just wanted to comment on this matter..
I'm using a Mac, and looking at the implementation of this function, it presses CTRL + A (Select all), which does not work on mac, since it is CMD + A for a select, meaning my tests fail when running them on a mac.
I hope this wasn't the wrong forum to post this in, just wanted to let you know, and please let me know if you're going to fix this in an upcoming release.
Regards
from testfx.
Hi! Thanks for the report!
This is what I use on Windows:
click("#textfield").push(KeyCode.CONTROL, KeyCode.A);
Maybe you could try something like this on OS X:
click("#textfield").push(KeyCode.COMMAND, KeyCode.A);
from testfx.
Hi @hastebrot thanks for the reply.
I am aware that it could be solved like this.
However our programmers use either linux or mac depending on their choice. We need the same code to run on both operating systems, hence the need for a smart "clearAllIn" function.
Regards
from testfx.
Related Issues (20)
- Cleanup behavior is different between ApplicationTest and ApplicationExtension HOT 5
- Headless mode tests start failing with JavaFX 20 due to stage focus behavior change HOT 39
- Does repo maintain ? HOT 8
- java.lang.IllegalAccessError: module javafx.graphics does not export com.sun.javafx.application to unnamed module HOT 8
- (chore) Replace travis and appveyor with github actions.
- (fix) Cannot find symbol Platform.requestNextPulse() HOT 1
- (chore) JavaDoc generation fails with invalid flag html5 HOT 1
- JDK 8 does not support module-info.java HOT 1
- BoundsQueryUtilsTest#boundsOnScreen_screen does not take screen boundary into account
- Intermittent unit test failure ShortcutKeyTest#shortcut_keyCode_converts_to_OS_specific_keyCode_when_pressed HOT 2
- Typo in README.md for dependencies in Test Framework for junit 4
- 4.0.17 testfx missing in maven repo HOT 3
- Compile error when building against TestFX 4.0.17
- Build error: module not found: org.testfx.junit5 HOT 1
- `<build>` Tag Missing in XML on Documentation Code Page
- Better documentation HOT 1
- JavaFX 17 and TestFX 4.0.17, can't run headless mode: java.lang.NoClassDefFoundError: com/sun/glass/ui/Robot HOT 2
- @Start method runs when fields are not injected; Quarkus and Junit5
- ParametersImpl memory leak fix didn't fix leak HOT 2
- Headless glass platform HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testfx.