I'm trying to write dynamic XPATH by for loop in java selenium WebDriver but I couldn't do it.
There's a webpage and I have to print the string content which are in the xpaths mentioned in follow.
-> This is one of them and it's going like article, article, article etc.
First of all, I have to find how many articles are there and after getting the exact number, I can show the string contents regarding all article parameters by using for loop but I couldn't write it. Could you please support for my request?