1 package net.avcompris.guixer.core; 2 3 import java.io.IOException; 4 5 public interface Command { 6 7 Command get() throws IOException; 8 9 Command takeScreenshot() throws IOException; 10 11 Command takeScreenshot(String label) throws IOException; 12 13 Command sleep(int ms) throws IOException; 14 15 Command waitFor(String locator) throws IOException; 16 17 Command waitFor(String locator, int timeOutSeconds) throws IOException; 18 19 Command waitForVisible(String locator) throws IOException; 20 21 Command waitForVisible(String locator, int timeOutSeconds) throws IOException; 22 23 SwitchTo switchTo() throws IOException; 24 25 Command log(String text) throws IOException; 26 27 Command clear(String locator) throws IOException; 28 29 Command click(String locator) throws IOException; 30 31 Command sendKeys(String locator, CharSequence... keys) throws IOException; 32 33 Command sendKeysSecret(String locator, String secret) throws IOException; 34 35 Command submit(String locator) throws IOException; 36 37 Command select(String location, int value) throws IOException; 38 39 Command select(String location, String value) throws IOException; 40 41 Command assertHasClass(String locator, String className) throws IOException; 42 43 Command assertDoesntHaveClass(String locator, String className) throws IOException; 44 45 Command skip() throws IOException; 46 47 Command when(String label, boolean condition) throws IOException; 48 49 Command when(boolean condition) throws IOException; 50 }