Jump to content

[ChromeDriver] Trigger auto translate


Recommended Posts

Hello,

i found these code in python that trigger auto translation on a website using prefs

options = Options()
prefs = {
  "translate_whitelists": {"fr":"en"},
  "translate":{"enabled":"true"}
}
options.add_experimental_option("prefs", prefs)
browser = webdriver.Chrome(chrome_options=options)

i did add the same option into chromedriver, however it fail, can you edit my codeĀ 

here is my code

_WD_CapabilitiesAdd('prefs', '{"translate_whitelists": {"jp":"en"}, "translate": {"enabled": "true"}}')

thank you

Edited by aRandomGuy
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...