Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What are the differences between implicit and explicit waits in Selenium with python?
The differences between implicit and explicit wait are listed below −
| Implicit Wait | Explicit Wait | |
|---|---|---|
| 1 | The driver is asked to wait for a specific amount of time for the element to be available on the DOM of the page. | The driver is asked to wait till a certain condition is satisfied. |
| 2 | It is a global wait and applied to all elements on the webpage. | It is not a global wait and applied to a particular scenario. |
| 3 | It does not require you to meet any condition. | It is required to satisfy a particular condition. Some of the expected conditions include −
|
| 4 | Syntaxdriver.implicitly_wait(2) | Syntaxw = WebDriverWait(driver, 7) w.until(expected_conditions.presence_of_ele ment_located((By.ID, "Tutorialspoint"))) |
| 5 | It is simple and easy to implement. | It is more complex in implementation compared to implicit wait. |
| 6 | It affects the execution speed since each step waits for this wait till it gets the element it is looking for. | It does not affect the execution speed since it is applicable to a particular element of the page. |
| 7 | It does not catch performance issues in the application. | It can catch performance issues in the application. |
Advertisements