0

How to find Element of a Search input with selenium using python

I tried many attempts and failed.

HTML Element Code

searchBar = self.browser.find_element_by_xpath("//div[@id='__field__38__']")
searchBar.send_keys("[email protected]")

How can I find this kind of elements ?

1 Answer 1

1

Please try this:

searchBar = self.browser.find_element_by_xpath("//input[@placeholder='Search by name']")
Sign up to request clarification or add additional context in comments.

3 Comments

Thanks a lot man you always give us the best and most relevant answers !
Not always, only when I know the answer :) You are welcome
can you check this one too ? thanks a lot stackoverflow.com/q/69553153/4825921

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.