I have a website that i want to crawl but as it is in chinese i have to firsttraslate it to english and then crawl for which i want the script to right click and open the context menu and then select translate to english. my script is able to right click and open the context menu but not able to select the translate to english option
i have used selenium webdriver for chrome along with python3.7 and have written the code accordingly for right clicking and opening the context menu but stuck on selecting the option translate to english
path_to_chromedriver = 'C:/Users/Administrator/AppData/Local/Programs/Python/Python37-32/chromedriver_new.exe'
driver =webdriver.Chrome(path_to_chromedriver)
driver.get("https://tmall.com")
your_link = driver.find_element_by_xpath('//*[@id="header"]/div/div/div/div[1]')
actionChains = ActionChains(driver)
actionChains.context_click(your_link).perform()
i expect the output to click the option translate to english from context menu