for (int i = 0; i < stringLinksToSectors.size(); i++) { String linkToCurrentSector = stringLinksToSectors.get(i); driver.get(linkToCurrentSector); }