使用 RSelenium 从 Firefox 下载嵌入的 PDF

问题描述

我正在尝试使用 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?),但由于我在下载步骤中卡住了,我决定发布一个更简单的问题。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)