Selenium Quiz for Ninjas – Scale Your Knowledge! Welcome to your Selenium Quiz for Ninjas - Scale Your Knowledge! 1. Hmm… Shadow DOM, it’s familiar to me from somewhere, how can I test this? We can't automate it We can automate it but not with Selenium With Selenium and with JSExecutor With Selenium and with HEADLESS With Selenium and with the DOM method of the WEBELEMENT 2. Junit: Version 5 vs. Version 4 – Identify the false sentence Version 5 works on JAVA10 and above, version 4 works on JAVA8 and above Version 5 has a NESTED annotation that is not available in 4 Version 4 includes one JAR while 5 is divided into 3 sub-projects In version 5 you will find the annotation of the SELECTCLASSES while in version 4 there is no such annotation 3. WebDriver is…. CLASS ABSTRACT CLASS METHOD VIRTUAL METHOD INTERFACE FRAMEWORK 4. Let’s step a bit outside of Selenium and talk about JSON. How can we extract a JSON file? With JSOUP libraries With JSON PATH libraries By XPATH By CSS SELECTOR By built-in functions in JAVASCRIPT 5. What is JSON Wire Protocol? 3, 2, 1… Go! A protocol we work with Selenium that is based on top of HTTP, defining a RESTFULL service using JSON We don’t work with it anymore, but still: A protocol over HTTP, defining a RESTFULL service using JSON Communication protocol between the various browsers on which we automate Data transfer protocol in JSON format between the client and the Selenium server 6. Ok, this one is easy - What is the difference between XPath and CSS selector? (pay attention this is a multiple choice question!) XPATH works on XML files and CSS works on JSON files Both of them are exactly the same. Anyone saying otherwise is wrong! CSS is faster than XPATH on Chrome browser No, XPATH is faster than CSS on Chrome browser With XPATH you can get to father element, and with CSS you can’t Different implementations for multiple selection of elements 7. Let’s move on to TestNG. What is the difference between BeforeTest and BeforeMethod? The BEFORETEST will run before each test case and the BEFOREMETHOD will run before each method defined in the class The BEFORETEST will run before each TEST (container) and the BEFOREMETHOD will run before each test case The BEFORETEST will run once before each test case and the BEFOREMETHOD will run before each test case The BEFORETEST will run before each test case and the BEFOREMETHOD will run once before all test cases None of these crazy answers 8. Ok, now let’s move on to some BDD. What are hooks in the world of BDD? With the help of the HOOKS we can jump between different tests The HOOKS allow us to repeat tests in case of failures With the HOOKS we can read parameters from external files more easily It’s eventually a way to implement a call for BEFORE and AFTER annotations All the answers are correct 9. What is the difference between Maven Surefire Plugin and Maven Failsafe Plugin? The SUREFIRE comes to replace the FAILSAFE in one of MAVEN’s versions The FAILSAFE comes to replace the SUREFIRE in one of MAVEN’s versions The SUREFIRE is designed to work with UNIT TESTS and the FAILSAFE is designed to work with INTEGRATION TESTS The SUREFIRE is designed to work with INTEGRATION TESTS and the FAILSAFE is designed to work with UNIT TESTS 10. What does StaleElementReference Exception mean? It’s an EXCEPTION that means the element is not found It’s an EXCEPTION that means the element is not displayed It’s an EXCEPTION that means the element is not enabled It’s an EXCEPTION that means the element is not valid anymore It’s an EXCEPTION that means the element has no reference to reach to It’s an EXCEPTION in Selenium just like the EXCEPTION of the NULL POINTER in programming language Click SUBMIT to find out how you scored and get a chance to win a $50 Amazon gift card! Winner will be randomly selected and announced by Nov. 1st, 2020 😉 Enter your E-mail address to receive the correct answers via mail. ***Your E-mail address will remain confidential. We will NOT spam, spy and we will NEVER share your information with any third parties. Email Time is Up! Time's up
Good experience
Good Quiz, i tried for knowledge purpose since i am new to this web domain.
This helps a lot for gaining experience. Definitely helps lot in your project activities.