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

Time:09-16

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

CodePudding user response:

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

//input[@type='text']

You can learn more about xpath from here

  • Related