For the given XPATH – /html/body/div/div/section/main/div/div/div/div/section/div/div/div/div/div/div
I need to count the number of fields. Those fields are div elements inside a parent div. The only thing changing in the XPATH is the number inside the last div /div[number] That number shows the correct number of fields I need to count.
As an Action I’m using Count Elements.
In the screenshot below you can see all the fields that I need to count.
My question is: How can I dynamically get the number from the last div which equals the total number of fields?