I am trying to send a query to google translate using selenium. However I am finding difficult to find the class in order to pass arguments to the search box.
I have written the following:
chrome_options = webdriver.ChromeOptions()
driver = webdriver.Chrome('/chromedriver')
driver.get('https://translate.google.com/')
query='Text to translate'
search = driver.find_element_by_name('q') # <- this is wrong!
search.send_keys(query)
search.submit()
Could you please point to the right class or argument to pass in my code? Thanks