如何使用java中的selenium web驱动程序检查csv文件中的元素?

如何使用java中的selenium web驱动程序检查csv文件中的元素?,java,csv,selenium,Java,Csv,Selenium,大家好:)我正在用java测试一个带有SeleniumWeb驱动程序的web应用程序。我想下载一个csv文件,检查元素是否正确。我想知道,Selenium是否可以检查csv文件中的元素,并将它们与我期望的元素进行比较 此代码允许我下载并保存文件。现在我想比较或检查元素是否良好: 公共类TestsTraction扩展了GestionExtraction{ @Test public void testConfiguration_fichier1() throws BadPageException {

大家好:)我正在用java测试一个带有SeleniumWeb驱动程序的web应用程序。我想下载一个csv文件,检查元素是否正确。我想知道,Selenium是否可以检查csv文件中的元素,并将它们与我期望的元素进行比较

此代码允许我下载并保存文件。现在我想比较或检查元素是否良好: 公共类TestsTraction扩展了GestionExtraction{

@Test
public void testConfiguration_fichier1() throws BadPageException {
    // Connection to the web app as superAdmin
    connexionIHM(User.SUPERADMIN);
    // go and select the csv file for downloading through the web app
    SeleniumTools.selectionneDansMenuGauche(getWebDriver(), "8", "2");
    // click on the button to download the file
    getWebDriver().findElement(By.xpath("//*[@id='extractionConfiguration_idServeurSelectioner']/option["+ numeroOption +"]")).click();
    // disconnect from the web app
    deconnexionIHM();
}

当然可以!你有我们可以看的代码吗?