All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.windup.testutil.html.TestHardcodedPReportUtil Maven / Gradle / Ivy

There is a newer version: 6.3.9.Final
Show newest version
package org.jboss.windup.testutil.html;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;

/**
 * Tests the contents of the hardcoded ip report
 */
public class TestHardcodedPReportUtil extends TestChromeDriverReportUtil {

    /**
     * Checks that a sis listed with the given filename, location, and IP
     */
    public boolean checkHardcodedIPInReport(String filename, String locationInFile, String ip) {
        WebElement element = getDriver().findElement(By.id("hardcodedIPTable"));
        if (element == null) {
            throw new CheckFailedException("Unable to find hard-coded IP table element");
        }
        return checkValueInTable(element, filename, locationInFile, ip);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy