How to press Enter button for search box #295
Unanswered
hayat-khan-space
asked this question in
Q&A
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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