Search in sources :

Example 6 with ComponentDriver

use of org.fest.swing.driver.ComponentDriver in project android by JetBrains.

the class NlComponentFixture method click.

/** Click in the middle of the view (typically selects it) */
public void click() {
    new ComponentDriver(myRobot).click(mySurface, getMidPoint());
    myRobot.waitForIdle();
}
Also used : ComponentDriver(org.fest.swing.driver.ComponentDriver)

Example 7 with ComponentDriver

use of org.fest.swing.driver.ComponentDriver in project android by JetBrains.

the class NlPropertyFixture method clickCustomizer.

public void clickCustomizer() {
    //JPanel
    //  TextEditor
    //  BrowsePanel
    //    ActionButton
    ActionButton button = GuiTests.waitUntilFound(myRobot, myValuePanel, Matchers.byType(ActionButton.class));
    new ComponentDriver(myRobot).click(button);
}
Also used : ActionButton(com.intellij.openapi.actionSystem.impl.ActionButton) ComponentDriver(org.fest.swing.driver.ComponentDriver)

Aggregations

ComponentDriver (org.fest.swing.driver.ComponentDriver)7 FileEditor (com.intellij.openapi.fileEditor.FileEditor)2 Keymap (com.intellij.openapi.keymap.Keymap)2 StringResourceEditor (com.android.tools.idea.editors.strings.StringResourceEditor)1 ThemeEditorComponent (com.android.tools.idea.editors.theme.ThemeEditorComponent)1 NlEditor (com.android.tools.idea.uibuilder.editor.NlEditor)1 AnAction (com.intellij.openapi.actionSystem.AnAction)1 KeyboardShortcut (com.intellij.openapi.actionSystem.KeyboardShortcut)1 Shortcut (com.intellij.openapi.actionSystem.Shortcut)1 ActionButton (com.intellij.openapi.actionSystem.impl.ActionButton)1 Editor (com.intellij.openapi.editor.Editor)1 FileEditorManager (com.intellij.openapi.fileEditor.FileEditorManager)1 Robot (org.fest.swing.core.Robot)1 Condition (org.fest.swing.timing.Condition)1 NotNull (org.jetbrains.annotations.NotNull)1 Nullable (org.jetbrains.annotations.Nullable)1