I am using RSelenium for web scraping. Now I have an xpath of a certain XML node from a dynamically generated web page. The child nodes are of the same kind. However, I have no a priori knowledge about the number of child nodes. (For instance, when you search for a rare item on a shopping website, you may run into this kind of situation.)
In general, how can I obtain the following information?
1) The numbers of a node's child nodes. 2) The xpath(s) of above. My goal is to apply actions throughout each child nodes (e.g. fill, check or click, depend on what kind the node is).
I see some xpaths using xpath helper in chrome. Then I am completely stuck.
Preferably exemplified using RSelenium. httr + rvest is also acceptable.