Tirias
Tirias

Reputation: 21

i'm making a small project with selenium but it's too slow

I'm making a small project with selenium. but before I can do anything, I need to wait for the whole page to load. is there anyway, for me to send keys as soon as the search bar loads?

Upvotes: 1

Views: 26

Answers (1)

user14685454
user14685454

Reputation:

You can use

driver.implicitly_wait(10)

On top of your code so each time you try to find an element it will try for 10 seconds and if it doesn’t find it, it will raise an exception

Upvotes: 2

Related Questions