问题
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