12. Wait in Selenium | Implicit Wait Vs Explicit Wait -Python

preview_player
Показать описание
In this video, we will see how we can add wait in our code so that it makes it more feasible because many websites may ban us because selenium works very fast and makes multiple requests within seconds, and websites detect that it's an automation/robot and not a human because humans can't make multiple requests within a seconds. Another reason for using wait is that many websites use AJAX because of which many web elements load at different timings because of which selenium couldn't find the web element and throws an exception. So for that reason, we will use wait in selenium. It will delay the request. There are two types of wait - Implicit wait and Explicit wait.

Рекомендации по теме