What are the types of Assertions there in Selenium?
Submitted by: AdministratorSelenium Assertions can be used in 3 modes:
1) assert - When an “assert” fails, the test will be aborted. If you are executing test suite, the next state case will start
2) verify - When a “verify” fails, the test will continue execution, logging the failure.
3) waitFor - “waitFor” commands wait for some condition to become true (which can be useful for testing Ajax applications). They will succeed immediately if the condition is already true. However, they will fail and halt the test if the condition does not become true within the current timeout setting.
Submitted by: Administrator
1) assert - When an “assert” fails, the test will be aborted. If you are executing test suite, the next state case will start
2) verify - When a “verify” fails, the test will continue execution, logging the failure.
3) waitFor - “waitFor” commands wait for some condition to become true (which can be useful for testing Ajax applications). They will succeed immediately if the condition is already true. However, they will fail and halt the test if the condition does not become true within the current timeout setting.
Submitted by: Administrator
Read Online Selenium Job Interview Questions And Answers
Top Selenium Questions
☺ | Which is the command used for displaying the values of a variable |
☺ | Can you please explain Selenium vs Imacros? |
☺ | Tell me what is the difference between an assert and a verify with Selenium |
☺ | Explain if a Selenium function requires a script argument, what would that |
☺ | What is Selenium WebDriver or Google WebDriver or Selenium 2.0? |
Top Software Testing Categories
☺ | Selenium Interview Questions. |
☺ | Soft Skills Interview Questions. |
☺ | Automation Testing Interview Questions. |
☺ | Software Quality Control Interview Questions. |
☺ | Testing Estimation Interview Questions. |