Created
March 14, 2016 01:46
-
-
Save Vanilton18/7b0c497deb3bb5097b52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.vanilton.PageObjectsTest; | |
import java.io.IOException; | |
import org.junit.BeforeClass; | |
import org.junit.Test; | |
import org.sikuli.script.FindFailed; | |
import org.sikuli.script.Screen; | |
import net.vanilton.PageObjects.PaginaInputPaste; | |
import net.vanilton.PageObjects.PaginaPrincipal; | |
public class AppExampleTestPage { | |
PaginaPrincipal paginaPrincipal; | |
PaginaInputPaste paginaInputPaste; | |
public static Screen screen; | |
@BeforeClass | |
public static void setUp() throws IOException{ | |
screen = new Screen(); | |
Runtime.getRuntime().exec("java -jar examples-sikuli.jar"); | |
} | |
@Test | |
public void test() throws FindFailed { | |
paginaPrincipal = new PaginaPrincipal(screen); | |
paginaPrincipal.clicarNoMenu("Funções"); | |
paginaPrincipal.clicarNoSubMenu("Input e Paste"); | |
paginaInputPaste = new PaginaInputPaste(screen); | |
paginaInputPaste.clicarNoBotao("Fechar"); | |
paginaInputPaste.verificarPaginaFechada(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment