I'm a beginner in learning python and have a problem with my code. It seems like a simple error but I cannot find a solution for this error.
Here's a code
import time
from selenium import webdriver
driver = webdriver.Chrome()
driver.get("https://www.google.co.jp/")
WebDriverWait(driver, 30).until(EC.presence_of_element_located((By.NAME, "q"))
search_box = driver.find_element_by_name('q')
search_box.send_keys('Selenium')
File "<ipython-input-12-1cac2821f197>", line 4
search_box = driver.find_element_by_name("q")
^
SyntaxError: invalid syntax
search_box.submit()
driver.implicitly_wait(10)
driver.find_element_by_link_text("Selenium - Web Browser Automation").click()
time.sleep(5)
driver.quit()
The problem is on line 6. I tried to run the code, but it says "search_box" is invalid syntax. Does anyone know the solution for this?