|
INTERVIEW QUESTIONS
AUTOMATED TESTING TOOLS
SELENIUM
DETAILS
Question: What is the use of The waitFor Commands in AJAX applications?
Answer: The major drawback of using andWait commands is that it will not work as the page is not actually refreshed.
Pausing the test execution for a certain period of time is also not a good approach as web element might appear later or earlier than the stipulated period depending on the system’s responsiveness, load or other uncontrolled factors of the moment, leading to test failures. The best approach would be to wait for the needed element in a dynamic period and then continue the execution as soon as the element is found.
In AJAX driven web applications, data is retrieved from server without refreshing the page. This is done using waitFor commands, as waitForElementPresent or waitForVisible, which wait dynamically, checking for the desired condition every second and continuing to the next command in the script as soon as the condition is met.
|
|
|
Category |
Selenium Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.2) By 8921 users |
Added on |
5/10/2016 |
Views |
67808 |
Rate it! |
|
|
Question:
What is the use of The waitFor Commands in AJAX applications?
Answer:
The major drawback of using andWait commands is that it will not work as the page is not actually refreshed.
Pausing the test execution for a certain period of time is also not a good approach as web element might appear later or earlier than the stipulated period depending on the system’s responsiveness, load or other uncontrolled factors of the moment, leading to test failures. The best approach would be to wait for the needed element in a dynamic period and then continue the execution as soon as the element is found.
In AJAX driven web applications, data is retrieved from server without refreshing the page. This is done using waitFor commands, as waitForElementPresent or waitForVisible, which wait dynamically, checking for the desired condition every second and continuing to the next command in the script as soon as the condition is met. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What is the difference between a command and its AndWait alternative?
|
View Answer
|
|
Write a webdriver program to count the number of hyperlinks in a webpage?
|
View Answer
|
|
What is the difference between Toggle Breakpoint and Set/Clear Start Point?
|
View Answer
|
|
What is the difference between verifyElementPresent, verifyElementPresent and verifyText commands?
|
View Answer
|
|
What are the steps to build test case in Selenium IDE?
|
View Answer
|
|
Can I test mobile application using selenium? or Can I use Selenium for automating Mobile Apps?
|
View Answer
|
|
What is the difference between Borland Silk and Selenium?
|
View Answer
|
|
What are the benefits of Selenium over QTP?
|
View Answer
|
|
What are the type of patterns used by Selenium Commands?
|
View Answer
|
|
What is an Xpath?
|
View Answer
|
|
What is the difference between Absolute XPath and Relative Xpath?
|
View Answer
|
|
What is the syntax of Selenium command?
|
View Answer
|
|
Explain the types of Selenium commands.
|
View Answer
|
|
Explain what is Datadriven framework and Keyword driven?
|
View Answer
|
|
What is Selenese?
|
View Answer
|
|
What is the difference between verify and assert commands?
|
View Answer
|
|
What is Selenium WebDriver?
|
View Answer
|
|
What is Selenium Grid?
|
View Answer
|
|
What is Selenium Remote Control (RC) tool?
|
View Answer
|
|
What are the different types of locators in Selenium?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All Selenium Interview Questions & Answers - Exam Mode /
Learning Mode
|