Giter Club home page Giter Club logo

Comments (7)

hastebrot avatar hastebrot commented on May 14, 2024

I also reported this issue to https://javafx-jira.kenai.com/browse/RT-35317.

from testfx.

minisu avatar minisu commented on May 14, 2024

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.

Philipp91 avatar Philipp91 commented on May 14, 2024

Yes, this is clearly a TestFX bug, I already commented that to the JavaFX ticket.

from testfx.

minisu avatar minisu commented on May 14, 2024

The fix really shows the clumsyness in the current implementation (having to instantiate a new GuiTest with a getRootNode that returns null)...

from testfx.

RobzInadE avatar RobzInadE commented on May 14, 2024

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.

hastebrot avatar hastebrot commented on May 14, 2024

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.

RobzInadE avatar RobzInadE commented on May 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.