RSelenium through docker

懵懂的女人 提交于 2019-12-06 02:39:20

You need to use the function rsDriver. The Selenium Version wants you to use Docker (which I also would recommend), but if you are not familiar with this you can go this way.

rsdriver will manage the binaries needed for running a Selenium Server. This provides a wrapper around the wdman::selenium function.

Here is what you have to do to start a Chrome Browser:

driver<- rsDriver()
remDr <- driver[["client"]]

And then you can work with it:

remDr$navigate("http://www.google.de")
remDr$navigate("http://www.spiegel.de")

And stop it:

remDr$close()
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!