I am trying to translate a webpage from Hindi to English by passing experimental options to chromedriver
in R while using the rselenium
package.
I am using the following setup but I am not able to translate the page automatically to English. This builds on the answer here.
eCaps <- list(prefs = list(translate_whitelists=c('hi:en'), translate=c('enabled:true')))
rd <- rsDriver(browser = "chrome",
chromever = "84.0.4147.30",
port = netstat::free_port(),
extraCapabilities = eCaps)
Any help in getting this to work is much appreciated. Thanks.