Examples of AjaxWebElement


Examples of org.jboss.seam.example.common.test.webdriver.AjaxWebElement

      "testGoToWSPage"
   })
   public void testLoginService()
   {
      loginService();
      AjaxWebElement response = driver.findElement(RESPONSE_AREA);

      // the same as Selenium, must use getValue to retrieve text inside
      // <textarea></textarea>
      assertTrue("Response area should contain \"true\"", response.getValue().contains(LOGIN_RIGHT_RESPONSE));
   }
View Full Code Here

Examples of org.jboss.seam.example.common.test.webdriver.AjaxWebElement

   {
      loginService();
      driver.findElement(LIST_CATEGORIES_LINK).clickAndWait();
      driver.findElement(INVOKE_SERVICE_BUTTON).clickAndWait();

      AjaxWebElement response = driver.findElement(RESPONSE_AREA);

      assertTrue("Response area should contain a list of categories.", response.getValue().contains(LIST_CATEGORIES_RESPONSE));
   }
View Full Code Here

Examples of org.jboss.seam.example.common.test.webdriver.AjaxWebElement

   })
   public void testCreateNewAuction()
   {
      loginService();
      createNewAuctionService();
      AjaxWebElement response = driver.findElement(RESPONSE_AREA);

      assertTrue("Response area should contain information about creating the auction.", response.getValue().contains(CREATE_NEW_AUCTION_RESPONSE));
   }
View Full Code Here

Examples of org.jboss.seam.example.common.test.webdriver.AjaxWebElement

      confirmAuctionService();
      driver.findElement(FIND_AUCTIONS_LINK).clickAndWait();
      driver.findElement(SEARCH_TERM).clearAndSendKeys(searchTerm);
      driver.findElement(INVOKE_SERVICE_BUTTON).clickAndWait();

      AjaxWebElement response = driver.findElement(RESPONSE_AREA);

      assertTrue("Response area should contain information about finding auction.", response.getValue().contains(FIND_AUCTIONS_RESPONSE));
   }
View Full Code Here

Examples of org.jboss.seam.example.common.test.webdriver.AjaxWebElement

      driver.findElement(AUCTION_TITLE).clearAndSendKeys(title);
      driver.findElement(AUCTION_DESCRIPTION).clearAndSendKeys(description);
      driver.findElement(AUCTION_CATEGORY_ID).clearAndSendKeys(categoryId);
      driver.findElement(INVOKE_SERVICE_BUTTON).clickAndWait();

      AjaxWebElement response = driver.findElement(RESPONSE_AREA);

      assertTrue("Response area should contain information about updating the auction.", response.getValue().contains(UPDATE_AUCTION_RESPONSE));
   }
View Full Code Here

Examples of org.jboss.seam.example.common.test.webdriver.AjaxWebElement

      driver.findElement(SET_AUCTION_DURATION_LINK).clickAndWait();
      driver.findElement(AUCTION_DURATION).clearAndSendKeys(duration);
      driver.findElement(INVOKE_SERVICE_BUTTON).clickAndWait();

      AjaxWebElement response = driver.findElement(RESPONSE_AREA);
      assertTrue("Response area should contain information about setting duration.", response.getValue().contains(SET_DURATION_RESPONSE));
   }
View Full Code Here

Examples of org.jboss.seam.example.common.test.webdriver.AjaxWebElement

      driver.findElement(SET_STARTING_PRICE_LINK).clickAndWait();
      driver.findElement(STARTING_PRICE).clearAndSendKeys(price);
      driver.findElement(INVOKE_SERVICE_BUTTON).clickAndWait();

      AjaxWebElement response = driver.findElement(RESPONSE_AREA);
      assertTrue("Response area should contain information about setting starting price.", response.getValue().contains(SET_STARTING_PRICE_RESPONSE));
   }
View Full Code Here

Examples of org.jboss.seam.example.common.test.webdriver.AjaxWebElement

      createNewAuctionService();

      driver.findElement(GET_AUCTION_DETAILS_LINK).clickAndWait();
      driver.findElement(INVOKE_SERVICE_BUTTON).clickAndWait();

      AjaxWebElement response = driver.findElement(RESPONSE_AREA);
      assertTrue("Response area should contain auction details.", response.getValue().contains(AUCTION_DETAILS_PRICE_RESPONSE));
   }
View Full Code Here

Examples of org.jboss.seam.example.common.test.webdriver.AjaxWebElement

   {
      loginService();
      driver.findElement(LOGOUT_LINK).clickAndWait();
      driver.findElement(INVOKE_SERVICE_BUTTON).clickAndWait();

      AjaxWebElement response = driver.findElement(RESPONSE_AREA);
      assertTrue("Response area should contain logout confirmation.", response.getValue().contains(LOGOUT_RESPONSE));
   }
View Full Code Here

Examples of org.jboss.seam.example.common.test.webdriver.AjaxWebElement

   {
      loginService();
      createNewAuctionService();
      confirmAuctionService();

      AjaxWebElement response = driver.findElement(RESPONSE_AREA);
      assertTrue("Response area should contain information about confirmation.", response.getValue().contains(CONFIRMATION_RESPONSE));
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.