This file contains hidden or 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
@Test | |
public void table_sort() throws InterruptedException { | |
// given | |
browser.get(contextPath.toExternalForm() + "sort.jsf"); | |
WebElement cell = browser.findElements(By.cssSelector(".rf-edt-c-column2 .rf-edt-c-cnt")).get(0); | |
Assert.assertEquals("9", cell.getText()); | |
guardXhr(sortLink).click(); | |
waitAjax().until(new Predicate<WebDriver> () { |
This file contains hidden or 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
@Travelling | |
SomeObject obj; | |
@Test | |
public void should() { | |
Warp.execute(new ClientAction() { | |
public void action() { | |
page.doAction(); | |
} | |
}).verify(new ServerAssertion() { |
This file contains hidden or 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
class TestHandler { | |
static void runQUnitMethod(WebDriver browser, String className, String methodName) { | |
String url = ...; // compose URL | |
browser.get("..."); | |
// wait and read results | |
} | |
} |
This file contains hidden or 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
public class LoginComponent { | |
@Root | |
private WebElement driver; | |
@FindBy(id="loginForm:username") | |
private WebElement usernameInput; | |
@FindBy(id="loginForm:password") | |
private WebElement passwordInput; |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.arquillian.example</groupId> | |
<artifactId>arquillian-tutorial</artifactId> | |
<version>1.0.0-SNAPSHOT</version> | |
<dependencyManagement> |
NewerOlder