Selenium Quiz for Experts – Are You Up To Speed? Welcome to your Selenium Quiz for Experts - Are You Up To Speed? 1. What is the hirarchy in the testng.xml file? Class -> Package -> Test -> Suite Class -> Package -> Suite Class -> Test -> Suite Test -> Class -> Suite None of these answers, are you crazy? 2. Are you familiar with Page Object? Great 🙂So what's the meaning of FindBy? A method for identify elements An annotation for identifying elements It's actually a locator for identifying elements No, it's an interface for identifying elements 3. What's the difference between Page Objects and Object Repository? Nothing! They are the same... Page Objects contain WebElements, while Object Repository contains String They both save elements, but with Page Objects we are required to implement methods Page Objects is a type of Object Repository - I'm sure! Object Repository is a type of Page Objects - I'm sure! 4. Can we take a screenshot even while the browser is hidden by a different application? Yes, of course! No, obviously... Yes, but only in Selenium 3 and above 5. I was requested to minimize the screen, so I used the function: Dude, there's not such direct function... driver.manage().window().minimize(); driver.minimize(); driver.window().minimize(); driver.manage().window().setPosition("0,0"); 6. I don't get it... When should we use the function driver.getPageSource()? Never, a completely redundant function It's the smart way to locate elements on the DOM To locate elements within the JS code that's embedded in the HTML To verify the source code coming from the server matches the browser's engine 7. I heard there's an enum named Keys in Selenium, is that so? Yes, indeed! Nope... Tricky question, since the Keys usually refers to the programming language, not Selenium 8. Selenium Grid provides the ability to execute tests in parallel on several different environments. Exactly!!! Selenium Grid has nothing to do with parallel execution No, because Selenium Grid actually refers to different browsers 9. The difference between implicitly wait and page load timeout is: Implicitly waits for all the elements on the page to load, while the page load waits for the page to load Implicitly waits for the page images to load, while the page load waits for all the elements on the page They are both the same, but the implicitly is a Java function and page load is a C# function They are both the same, but the implicitly is a Selenium IDE function and page load is a Selenium WebDriver function 10. Are you familiar with the HTML input tag? Great! Then can you please help me understand how I can return its text? Simple! By using the getText method Ahh... That's a tricky one! You need to use getPageSource Hmm... I think getAttribute using the parameter text Nope, it's getAttribute using the parameter value Nice try, but none of the above! Click SUBMIT to find out how you scored! 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