Package org.qagile.conditions

Source Code of org.qagile.conditions.PageTitleAppearsCondition

package org.qagile.conditions;

import org.qagile.selenium.SeleniumHelper;

public class PageTitleAppearsCondition implements Condition {

  private String title;

  public PageTitleAppearsCondition(String newPageTitle) {
    this.title = newPageTitle;
  }

  public boolean isSatisfied() {
    if(new SeleniumHelper().getTitle().equals(title)){
      return true;
    }
    return false;
  }

  public String describe() {
    return "This condition verified Title of the targetPage";
  }

}
TOP

Related Classes of org.qagile.conditions.PageTitleAppearsCondition

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.