Sollicitatievraag bij Tata Consultancy Services

How can you validate Table data?

Antwoord op sollicitatievraag

Anoniem

15 jul 2024

WebElement table = driver.findElement(By.id("dataTable")); List rows = table.findElements(By.tagName("tr")); for(WebElement row : rows) { List cells = row.findElements(By.tagName("td")); // Process cell data }