How to obtain the href element using RSelenium from this code?
问题 I am using Rselenium to obtain an URL, and I don't understand why is not working. My code: links <- remDr$findElements(using = "xpath", value = "//*[@class = 'item-info']") final_link <- data.frame(link = unlist(sapply(links, function(x) {x$getElementAttribute('href')}))) The code of the page: <div class="item-info"> <p class="title product-field" translate="no" data-track-info=" {"description":"title"}" data-force-track=""> <a href="https://www.kobo.com/us/en/ebook/added-youth" class=""