Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix) WriteRobot::write() to prefer the Scene of the focused window. #239

Merged
merged 1 commit into from Dec 5, 2015

Conversation

hastebrot
Copy link
Member

This fixes a bug where we previously required to have an extra call to targetWindow("2nd stage").

// given:
interact(() -> window("2nd stage").requestFocus());

// when:
write("foo");

// then:
verifyThat(from(rootNode(window("2nd stage"))).lookup(".text-field"), hasText("foo"));

Note: Probably needs additional considerations regarding to PopupWindow and its subclasses.

hastebrot added a commit that referenced this pull request Dec 5, 2015
(fix) `WriteRobot::write()` to prefer the `Scene` of the focused window.
@hastebrot hastebrot merged commit aabafdb into TestFX:master Dec 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant