我正在尝试使用 RSelenium 从以下页面下载嵌入的 pdf:https://rac.anpad.org.br/index.php/rac/article/view/1479/1672
# Access the web page (this works fine):
library(RSelenium)
driver <- rsDriver(browser = "firefox")
remote_driver <- driver[["client"]]
remote_driver$navigate("https://rac.anpad.org.br/index.php/rac/article/view/1479/1672")
# Download pdf (this is the part not working)
button <- remote_driver$findElement(using = "css selector", "span:nth-child(1)") # this seems to be working
button$clickElement() # but nothing happens here
但没有任何反应,甚至没有出现错误。有人可以告诉我出了什么问题吗? css选择器有问题吗?或者也许使用 Firefox 设置?我感谢任何帮助!最好的解决方案是能够设置要下载的文件名。
Obs:我在这里提出了类似的问题 (How to download embedded PDF files from webpage using RSelenium?),但由于我在下载步骤中卡住了,我决定发布一个更简单的问题。