I am facing difficulties in handling dynamic xpath. I have a table, the contents of table changes depending on the previous steps.
In above example, number changes. How can we handle this ? can we pass a variable to test objects to achieve this ? If yes, please provide the procedure for the same.
Also, how to get the number of elements matching a xpath, like "findelements" in selenium. Eg : List<WebElement> tableList = driver.findElements(By.xpath()));
Please let me know if any other information is required.
Appreciate your help!
It looks like you're new here. If you want to get involved, click one of these buttons!