Skip to content
Advertisement

Unable to enter text using send keys in selenium webdriver python

I am trying to enter text in “keywords” section using send keys command. Please find my below code.

JavaScript

Advertisement

Answer

There are two elements with same id

I used driver.find_elements_by_id("keywords") method to get all of them as a list

and i accessed the required using index number

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement