How do I find elements with selenium that don't have a name | python

Viewed 24

I have a question. I am trying to access a search field with Selenium, but this has no name and no ID in the html code. Does anyone know how I can get the search field so that I can write something in it with selenium?

Html Code of the search field

Complete Html Code

1 Answers

You can write the xpath for that like from you screenshot:

//input[@type='text']

You can learn more about xpath from here

Related