This is one of the frequently asked question in interviews. The answer is very simple, in Selenium automation the waits are categorized into types Implicit Wait and Explicit Wait.
Implicit Wait: This wait applicable to all the web elements on the web application through the project once defined. If we define this wait as "15" seconds at driver instantiation level, then driver will wait for 15 seconds for any web element on the web pages.
Explicit Wait: This wait is applicable to one web element at a time based on a ondition. Suppose there are two web elements say "button" and "link", button is loading after 20 seconds and link is loading after 30 seconds. So we can define Explicit wait for 20 and 30 seconds using WebDriverWait and we can make the WebDriver to wait for these two elements individually.
Implicit Wait: This wait applicable to all the web elements on the web application through the project once defined. If we define this wait as "15" seconds at driver instantiation level, then driver will wait for 15 seconds for any web element on the web pages.
Explicit Wait: This wait is applicable to one web element at a time based on a ondition. Suppose there are two web elements say "button" and "link", button is loading after 20 seconds and link is loading after 30 seconds. So we can define Explicit wait for 20 and 30 seconds using WebDriverWait and we can make the WebDriver to wait for these two elements individually.
Nice article you have posted here.Thank you for sharing this information. Share more like this.
ReplyDeleteselenium training in tambaram
selenium training in Chennai
Software Testing Training in OMR
RPA Training in Anna Nagar
Web Designing Course in Porur
PHP Training in T Nagar
Dot Net Training in T Nagar
Python Training in Tambaram
Android Training in Anna Nagar
Spoken English Classes in Anna Nagar
Hi there to everybody, it’s my first go to see of this web site; this weblog consists of awesome and in fact good stuff for visitors. Hurrah, that’s what I was exploring for, what stuff! Existing here at this blog, thanks admin of this web site. You can also visit Custom Web Application Development for more Metricoid Technology Solutions related information and knowledge.
ReplyDelete