use of org.fest.swing.annotation.RunsInEDT in project android by JetBrains.
the class SearchTextFieldDriver method deleteText.
@RunsInEDT
public void deleteText(SearchTextField textBox) {
focusAndWaitForFocusGain(textBox.getTextEditor());
execute(new GuiTask() {
@Override
protected void executeInEDT() throws Throwable {
textBox.getTextEditor().selectAll();
}
});
robot.pressAndReleaseKey(KeyEvent.VK_DELETE);
}