public void addNewContent(
     String firstName, String lastName, String address, String city, String telephone) {
   this.firstName.sendKeys(firstName);
   this.lastName.sendKeys(lastName);
   this.address.sendKeys(address);
   this.city.sendKeys(city);
   this.telephone.sendKeys(telephone);
   Graphene.guardHttp(this.save).click();
 }
Example #2
0
 /**
  * !All requests depends on Metamer`s requestTime! Generates a waiting proxy. The proxy will wait
  * for expected @waitRequestType which will be launched via interactions with @target and then it
  * waits until Metamer's request time changes(@waitRequestType is HTTP or XHR) or not changes
  * (@waitRequestType is NONE).
  *
  * @param <T> type of the given target
  * @param target object to be guarded
  * @param waitRequestType type of expected request which will be launched
  * @param guardTime time for which will be the target guarded, applicable only
  *     for @waitRequestType = NONE
  * @return waiting proxy for target object
  */
 public static <T> T waitRequest(T target, WaitRequestType waitRequestType, long guardTime) {
   switch (waitRequestType) {
     case HTTP:
       return requestTimeChangesWaiting(Graphene.guardHttp(target));
     case XHR:
       return requestTimeChangesWaiting(Graphene.guardAjax(target));
     case NONE:
       return requestTimeNotChangesWaiting(Graphene.guardNoRequest(target), guardTime);
     default:
       throw new UnsupportedOperationException("Not supported request: " + waitRequestType);
   }
 }
 public void clickDeleteSpecialty() {
   Graphene.guardHttp(deleteInTable).click();
 }
 public void clickEditSpecialty() {
   Graphene.guardHttp(editInTable).click();
 }
 public void clickAddNewPetType() {
   Graphene.guardHttp(getNewPetTypeForm).click();
 }