public class MyULCComboBoxOperator extends ULCComboBoxOperator {
public MyULCComboBoxOperator(AWTContainerOperator cont) {
super(cont);
}
public void setSelectedIndex(final int index) {
TestContext.getInstance().runVoidCommand(new TestCommand() {
public void proceed() {
getJemmyJComboBoxOperator().setSelectedIndex(index);
}
});
}
public void setSelectedItem(final String item) {
TestContext.getInstance().runVoidCommand(new TestCommand() {
public void proceed() {
getJemmyJComboBoxOperator().setSelectedItem(item);
}
});
}
}
In addition changed the default timeout for scrolling operations (JScrollBarOperator.WholeScrollTimeout) from 10s to 60s.
If you need even larger scrolling operation timeouts you can set JScrollBarOperator.WholeScrollTimeout to a custom value in AbstractTestCase.setUp() after invoking super.setUp().