1
Was ist falsch mit der if
-Bedingung unten? Wenn beide Strings denselben Wert haben, geht es nicht in if
-condition.IF-Bedingung funktioniert nicht in Java Selen
for(int j=0; j<types; j++){
List<WebElement> category = driver.findElements(By.xpath("//li[@class='pure-menu-selected']"));
for(int k=0; k<category.size(); k++){
String matchtype_from_excel = tours.getRow(x).getCell(j).getStringCellValue().toUpperCase().trim();
String matchtype_from_entry = driver.findElement(By.xpath("//li[@class='pure-menu-selected']["+k+"+1]/a")).getText().toUpperCase().trim();
if(matchtype_from_excel.equals(matchtype_from_entry)){
category.get(k+1).click();
}
}
}