How to press Enter button for search box #295
Unanswered
hayat-khan-space
asked this question in
Q&A
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
from selenium_driverless.sync import webdriver
from selenium_driverless.types.by import By
options = webdriver.ChromeOptions()
with webdriver.Chrome(options=options) as driver:
driver.get('http://www.google.com')
search_box = driver.find_element(By.NAME, 'q', timeout=10000)
search_box.send_keys("hi how r u song")
search_box.click()
# how to press Enter Button here as click is not working
Beta Was this translation helpful? Give feedback.
All reactions