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

Configure underlying jemmy dispatch mode #14

Closed
hopeThisHelps opened this issue Aug 2, 2012 · 3 comments
Closed

Configure underlying jemmy dispatch mode #14

hopeThisHelps opened this issue Aug 2, 2012 · 3 comments

Comments

@hopeThisHelps
Copy link

Hi,

as described here:
http://wiki.netbeans.org/Jemmy_Tutorial#Robot_vs_event_dispatching

Jemmy allows configuration of its dispatch mode: event or robot.

What do you think about exposing an API in the swing library to configure it?

@pekkaklarck
Copy link
Contributor

Assuming that also the Jemmy version SwingLibrary uses has this API, exposing it as a keyword sounds good. Are you interested in creating a patch?

@hopeThisHelps
Copy link
Author

Sorry but I don't think I will have time to write a patch. I made it work statically by modifying org.robotframework.swing.SwingLibrary.java.

protected SwingLibrary(Collection keywordPatterns) {
[snip]
JemmyProperties.setCurrentDispatchingModel(JemmyProperties.ROBOT_MODEL_MASK);
[snip]
}

@jussimalinen
Copy link
Contributor

And finished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants