Explain what is assertion in selenium and what are the types of assertion?



Explain what is assertion in selenium and what are the types of assertion?..

Answer / Sanjeev Kumar Kashyap

Assertions in Selenium WebDriver are used to verify that the expected and actual results match. They allow you to validate the state of your application under test. Types of Assertions include Equal Assertion (assertEquals), NotEqual Assertion (assertNotEquals), and True/False Assertion (assertTrue, assertFalse).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

What are the different ways of locating a web element in selenium?

1 Answers  


How do you get the current page url?

1 Answers  


How to install use TestNG in selenium webdriver ?

1 Answers   Infosys,


In which format does source view show the script in selenium ide?

1 Answers  


How to press enter key on text box in selenium webdriver?

1 Answers  


What are the types of assertions there in selenium?

1 Answers  


Tell us how can you run selenium server other than the default port 4444?

1 Answers  


What is the wait?

1 Answers  


Tell me how can we launch different browsers in selenium webdriver?

1 Answers  


How to set test case priority in testng?

1 Answers  


Which are the languages supported by selenium rc?

1 Answers  


How to launch a browser using selenium webdriver?

1 Answers  


Categories