How to specify firefox browser version for `RSelenium::rs_driver()`?

白昼怎懂夜的黑 提交于 2020-01-16 09:00:08

问题


RSelenium::rsDriver() has the argument version specifying "what version of Selenium Server to run." The function RSelenium::rsDriver() calls RSelenium::remoteDriver() which also has the argument version but in this case it specifies "The browser version" (RSelenium documentation).

RSelenium::rsDriver() passes any ... args into RSelenium::remoteDriver() but, given name duplicate (both rs_driver() and remote_driver() contain arg for version), there does not seem an argument to supply to change the browser version...

How can I specify the browser version while using RSelenium::rsDriver()?

Attempts:
Hoped I could write a wrapper to RSelenium::rsDriver() and change name of version arg to something different (e.g. version_sel) so that then if a version arg was given it would be passed to ... and onto RSelenium::remote_driver(). However this did not work -- as can be seen at this public gist.

来源:https://stackoverflow.com/questions/58722758/how-to-specify-firefox-browser-version-for-rseleniumrs-driver

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