Example usage for org.openqa.selenium WebElement isDisplayed

List of usage examples for org.openqa.selenium WebElement isDisplayed

Introduction

In this page you can find the example usage for org.openqa.selenium WebElement isDisplayed.

Prototype

boolean isDisplayed();

Source Link

Document

Is this element displayed or not?

Usage

From source file:com.provenir.automation.framework.helper.AdminPage.java

public boolean verifyLoanDocumentPreparation() {
    Util.waitForAJAX(driver);/*w ww. j  a  v a  2s. com*/
    WebElement e = driver
            .findElement(By.xpath("//label[contains(.,'Fulfillment - Loan Document Preparation')]"));
    WebElement f = driver.findElement(By.xpath("//label[contains(.,'Generate Legal Docs (Laser Pro)')]"));
    WebElement g = driver.findElement(By.xpath("//label[contains(.,'Document Package creation')]"));
    WebElement h = driver.findElement(By.xpath("//label[contains(.,'Verify Docs Are Correct')]"));
    WebElement i = driver.findElement(By.xpath("//label[contains(.,'Closing Checklist')]"));
    WebElement j = driver.findElement(By.xpath("//label[contains(.,'Schedule Closing')]"));

    if (e.isDisplayed() && f.isDisplayed() && g.isDisplayed() && h.isDisplayed() && i.isDisplayed()
            && j.isDisplayed())
        return true;
    else
        return false;
}

From source file:com.provenir.automation.framework.helper.AdminPage.java

public boolean verifyClosing() {
    Util.waitForAJAX(driver);//from w  w  w  .  ja va  2  s . c o  m
    Util.scrollBottom(driver);
    WebElement e = driver
            .findElement(By.xpath("//*[@id='processGrid']/div[2]/div[5]/div/div[28]/div[2]/label"));
    WebElement f = driver.findElement(By.xpath("//label[contains(.,'Complete Pre-Funding Checklist')]"));
    WebElement g = driver
            .findElement(By.xpath("//label[contains(.,'Have Signed Docs Been Received Back from Customer?')]"));

    if (e.isDisplayed() && f.isDisplayed() && g.isDisplayed())
        return true;
    else
        return false;
}

From source file:com.provenir.automation.framework.helper.AdminPage.java

public boolean verifyBookingFundingServicing() {
    Util.waitForAJAX(driver);//from  w  w  w .j a va2s .  c  o m
    WebElement e = driver.findElement(By.xpath("//label[contains(.,'Booking, Funding and Servicing')]"));
    WebElement f = driver.findElement(By.xpath("//label[contains(.,'Complete Pre-Booking Checklist')]"));
    WebElement g = driver.findElement(By.xpath("//label[contains(.,'Book to Servicing System')]"));

    if (e.isDisplayed() && f.isDisplayed() && g.isDisplayed())
        return true;
    else
        return false;
}

From source file:com.provenir.automation.framework.helper.AdminPage.java

public boolean verifyGeneralTask() {
    Util.waitForAJAX(driver);//from   w w w  . ja v  a 2 s  .co m
    WebElement e = driver.findElement(By.xpath("//label[contains(.,'General Task')]"));
    WebElement f = driver.findElement(By.xpath("//label[contains(.,'CheckList Common Conditional Task')]"));
    WebElement g = driver.findElement(By.xpath("//label[contains(.,'Fee review task')]"));

    if (e.isDisplayed() && f.isDisplayed() && g.isDisplayed())
        return true;
    else
        return false;
}

From source file:com.provenir.automation.framework.helper.AdminPage.java

public boolean verifyCompliance() {
    Util.waitForAJAX(driver);/*from w w  w.  ja  va 2 s .c  om*/
    WebElement e = driver.findElement(By.xpath("//label[contains(.,'Compliance')]"));
    WebElement f = driver.findElement(By.xpath("//label[contains(.,'Start Reg B')]"));
    WebElement g = driver.findElement(By.xpath("//label[contains(.,'Stop Reg B')]"));
    WebElement h = driver.findElement(By.xpath("//label[contains(.,'OFAC')]"));

    if (e.isDisplayed() && f.isDisplayed() && g.isDisplayed() && h.isDisplayed())
        return true;
    else
        return false;
}

From source file:com.provenir.automation.framework.helper.AdminPage.java

public boolean verifyPreAnalysis() {
    Util.waitForAJAX(driver);/*  ww w .  ja  v a  2 s.c  o  m*/
    WebElement e = driver.findElement(By.xpath("//label[contains(.,'Pre-Analysis')]"));
    WebElement f = driver.findElement(By.xpath("//label[contains(.,'Add Customer Address')]"));
    WebElement g = driver.findElement(By.xpath("//label[contains(.,'Enter Financial Statements')]"));
    WebElement h = driver.findElement(By.xpath("//label[contains(.,'Setup Pricing')]"));
    Util.scrollDown(driver);

    if (e.isDisplayed() && f.isDisplayed() && g.isDisplayed() && h.isDisplayed())
        return true;
    else
        return false;
}

From source file:com.provenir.automation.framework.helper.AdminPage.java

public boolean verifyCreditAnalysis() {
    Util.waitForAJAX(driver);//ww  w.ja  va 2s.  c o  m
    Util.scrollDown(driver);
    WebElement e = driver.findElement(By.xpath("//label[contains(.,'Credit Analysis')]"));
    WebElement f = driver.findElement(By.xpath("//label[contains(.,'Facility Risk Rating')]"));
    WebElement g = driver.findElement(By.xpath("//label[contains(.,'Financial Analysis')]"));
    WebElement h = driver.findElement(By.xpath("//label[contains(.,'Set covenants')]"));

    if (e.isDisplayed() && f.isDisplayed() && g.isDisplayed() && h.isDisplayed())
        return true;
    else
        return false;
}

From source file:com.provenir.automation.framework.helper.AdminPage.java

public boolean verifyDecisioning() {
    Util.waitForAJAX(driver);/*from  ww w. j av a 2s . c  om*/
    Util.scrollDown(driver);
    WebElement e = driver.findElement(By.xpath("//label[contains(.,'Decisioning')]"));
    WebElement f = driver.findElement(By.xpath("//label[contains(.,'Review Credit Memo')]"));
    WebElement g = driver.findElement(By.xpath("//label[contains(.,'Generate Commitment Letter')]"));

    if (e.isDisplayed() && f.isDisplayed() && g.isDisplayed())
        return true;
    else
        return false;
}

From source file:com.provenir.automation.framework.helper.AdminPage.java

public boolean verifyFulfillmentDueDiligence() {
    Util.waitForAJAX(driver);/*from  w  w w .j  av  a2  s  .  c om*/
    Util.scrollBottom(driver);
    WebElement e = driver.findElement(By.xpath("//label[contains(.,'Fulfillment - Due diligence')]"));
    WebElement f = driver.findElement(By.xpath("//label[contains(.,'Due Diligence checklist')]"));
    WebElement g = driver.findElement(By.xpath("//label[contains(.,'Customize Terms and Conditions')]"));

    if (e.isDisplayed() && f.isDisplayed() && g.isDisplayed())
        return true;
    else
        return false;
}

From source file:com.provenir.automation.framework.helper.AdminPage.java

public boolean verifyFulfillmentLoanDocumentPreparation() {
    Util.waitForAJAX(driver);/*from w w  w  .  ja va  2  s . c o m*/
    WebElement e = driver
            .findElement(By.xpath("//label[contains(.,'Fulfillment - Loan Document Preparation')]"));
    WebElement f = driver.findElement(By.xpath("//label[contains(.,'Generate Legal Docs (Laser Pro)')]"));
    WebElement g = driver.findElement(By.xpath("//label[contains(.,'Document Package creation')]"));

    if (e.isDisplayed() && f.isDisplayed() && g.isDisplayed())
        return true;
    else
        return false;
}