Package com.google.sitebricks.acceptance.page

Examples of com.google.sitebricks.acceptance.page.FormsPage


public class FormsAcceptanceTest {
  private static final String SOME_TEXT = "aoskdopaksdoaskd" + new Date();

  public void shouldRenderDynamicTextFromTextFieldBinding() {
    WebDriver driver = AcceptanceTest.createWebDriver();
    FormsPage page = FormsPage.open(driver);

    final String boundAutobots = "Optimus, Rodimus, UltraMagnus";
    final String[] strings = boundAutobots.split(", ");

    page.enterText(SOME_TEXT);
    page.enterAutobots(strings[0], strings[1], strings[2]);
    page.send();

    assert page.hasBoundText(SOME_TEXT) : "Did not generate dynamic text from form binding";
    assert page.hasBoundAutobots(boundAutobots) : "Did not generate text from list binding";
  }
View Full Code Here

TOP

Related Classes of com.google.sitebricks.acceptance.page.FormsPage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.