← All topics
Quiz: Web Elements: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. Which class handles an HTML select element?
- Q2. How do you press OK on a JavaScript alert?
- Q3. After working inside an iframe, how do you return to the main page?
- Q4. How do you upload a file with Selenium?
- Q5. Which class performs hover and drag-and-drop?
- Q6. Which method reads whether a checkbox is currently ticked?
- Q7. Which Select method picks the option a user sees as "Web Development"?
- Q8. A link opens an invoice in a new tab. How do you work in that tab?
- Q9. Which call cancels a JavaScript confirm dialog?
- Q10. When should you use JavascriptExecutor, for example to scroll an element into view?