As part of a project, I want to analyse and retrieve information from the following html page with the selenium node:
There are 114 results. But if I try to retrieve the information with the find element node, I only get the first 12 results.
I introduced a javascript execute node to scroll down the page ( window.scrollTo(0, document.body.scrollHeight)
It works but I can still only get the first 12 results.
I tried afterwards to scroll down the page step by step with the code with the following execute js node :
function getElementByXpath(path) {
return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
}
getElementByXpath("/html/body/div[1]/div[3]/div[2]/article[12]/div[3]/div[1]/span/a").focus()
I had fun manually changing the value of the article tag with X = 12; 24;36⌠to reach the bottom of the page. It works well but I canât introduce a loop to automate the change of value of this tag.