#2 Created text selector for JavaFX. Added waitForFxEvents.