我正在尝试使用Rselenium抓取一个网站。然而,我得到了一个错误:
Error: checkForServer is now defunct. Users in future can find the function in
file.path(find.package("RSelenium"), "examples/serverUtils"). The
recommended way to run a selenium server is via Docker. Alternatively
see the RSelenium::rsDriver function.我的chrome升级到了58版,moxilla升级到了45版,rselenium以前是可以工作的,但我不知道发生了什么,请帮帮我。
发布于 2017-05-12 16:12:28
下面的脚本适用于我的新RSelenium...
rD <- rsDriver(port=4444L,browser="chrome")
remDr <- rD$client
remDr$navigate(url)发布于 2018-04-15 23:53:19
只要确保你有docker帐户并且你已经安装了它。
尝尝这个
library('RSelenium')
rD=rsDriver()
remDr =rD[["client"]]
remDr$navigate("https://www.vinmonopolet.no/vmp/Land/Chile/Gato-Negro-Cabernet-Sauvignon-2017/p/295301")
webElement = remDr$findElement('xpath', '//*[@id="product_2953010"]/span[2]')
webElement$clickElement()https://stackoverflow.com/questions/43930906
复制相似问题