In the webpage https://cloudwise.nl/dit-is-cloudwise/alle-cloudwisers/directie/ I'm trying to get all users' names using for loop.
What I have tried so far is:
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//div[contains(@class,'inner')]/h3"))).getText();
and
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//div[contains(@class,'inner')]/h3"))).getAttribute("innerHTML");
But all of them gets text Directie
instead of users' name. I think it's because of the users' name is in a header <h3>
tag and it just ignores it. How can I get the users' name within a header tag?