0

i am trying to web scrape few information from a web page.

I need to send input like text or email ID and then click on the search icon .

I tried below,

inputElement = browser.find_element_by_id("headerSearchKeyword")
inputElement.send_keys('ID1234')
browser.find_element_by_css_selector('top-search').click()

it throws error

WebDriverException: unknown error: call function result missing 'value' (Session info: chrome=69.0.3497.100) (Driver info: chromedriver=2.25.426923 (0390b88869384d6eb0d5d09729679f934aab9eed),platform=Windows NT 10.0.15063 x86_64)

Any help?

pic

Jonreyan
  • 131
  • 2
  • 3
  • 14

1 Answers1

1

In CSS selector the class value starts with dot(.). Please try with dot as given below.

inputElement = browser.find_element_by_id("headerSearchKeyword")
inputElement.send_keys('ID1234')
browser.find_element_by_css_selector('.top-search').click()
Murthi
  • 5,299
  • 1
  • 10
  • 15