为什么我的浏览器无法使用Rselenium下载文件?

时间:2016-10-07 19:36:23

标签: r selenium-webdriver rselenium

出于某种原因,我无法使用RseleniumFirefox网络驱动程序下载任何文件。简而言之,我无法保存文件,选项显示为灰色。 我将其用作个人资料:

fprof <- makeFirefoxProfile(list(
  browser.download.dir = d_pth,
  browser.download.folderList = 2L,
  browser.download.manager.showWhenStarting = FALSE,
  browser.helperApps.alwaysAsk.force = FALSE,
  browser.helperApps.neverAsk.saveToDisk = "text/comma-separated-values, text/csv, application/csv, application/excel, application/vnd.ms-excel, application/vnd.msexcel, text/anytext"))

这是我在所有情况下得到的,灰色的......

enter image description here

这是我的会话信息

R version 3.2.3 (2015-12-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Linux Mint 18

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8     LC_MONETARY=nl_NL.UTF-8    LC_MESSAGES=en_US.UTF-8    LC_PAPER=nl_NL.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=nl_NL.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] data.table_1.9.7 readxl_0.1.1    

loaded via a namespace (and not attached):
[1] tools_3.2.3 Rcpp_0.12.7

我的系统信息

                              sysname                                       release                                       version                                      nodename                                       machine 
                              "Linux"                            "4.4.0-36-generic" "#55-Ubuntu SMP Thu Aug 11 18:01:55 UTC 2016"              "wariogs-HP-ENVY-15-Notebook-PC"                                      "x86_64" 
                                login                                          user                                effective_user 
                            "unknown"                                     "wariogs"                                     "wariogs" 

此外,我正在运行Firefox 48。

0 个答案:

没有答案