如何在RSelenium中发送HTTP基本身份验证标头?

时间:2018-02-02 18:15:02

标签: r selenium

我正在尝试使用RSelenium访问this网站

wd <- getwd()
eCaps <- list(
        chromeOptions = 
                list(prefs = list(
                        "profile.default_content_settings.popups" = 0L,
                        "download.prompt_for_download" = FALSE,
                        "download.default_directory" = wd
                )
                )
)

rD <- rsDriver(extraCapabilities = eCaps)
remDr <- rD$client

remDr$navigate("https://username:password@urlhere/")

似乎无法正常工作。我需要访问R中的网站,因为我的其余部分都是用R语言编写的。

0 个答案:

没有答案
相关问题