Open Url from excel with java

0

Hello community, I'm creating a method to open an url with selenium.

I have tried several ways and I can only get the data through a for to be able to iterate and get the links, being that what I want to do is to open those links and that my program follow my iteration until I find all but I can open them so: first 1, say the page is not found, the second one opens, and so on.

This is what I have at the moment

ExcelHelper exhelp = new ExcelHelper();
    Sheet zipSheet = null;
    zipSheet = exhelp.openSheet(
            "urlTest.xlsx", 0);

    int length = exhelp.getSheetLength(zipSheet);

    for (int i = 0; i <= length; i++) {
        ArrayList<String> currentRow = exhelp.getRow(zipSheet, i);
        Row row = zipSheet.getRow(i);
        String excelURL = row.getCell(0).toString();
        currentRow.add(excelURL);

    }
    
asked by MarcuzVon 22.05.2018 в 20:56
source

0 answers