driver.get("https://www.leafground.com/dynamicgrid.xhtml");
//count column
List<WebElement> column = driver.findElements(By.tagName("th"));
System.out.println(column.size());
//row
List<WebElement> row = driver.findElements(By.tagName("tr"));
System.out.println(row.size()/2);
//return value of a customer
String text = driver.findElement(By.xpath("//td[normalize-space()='Costa Jennifer']//td[3]")).getText();
System.out.println(text);
What I'm trying to do is to get the activity value for Costa Jennifer value. But I'm getting:
Unable to locate the element
.