🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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 →
  1. Q1. Which class handles an HTML select element?
  2. Q2. How do you press OK on a JavaScript alert?
  3. Q3. After working inside an iframe, how do you return to the main page?
  4. Q4. How do you upload a file with Selenium?
  5. Q5. Which class performs hover and drag-and-drop?
  6. Q6. Which method reads whether a checkbox is currently ticked?
  7. Q7. Which Select method picks the option a user sees as "Web Development"?
  8. Q8. A link opens an invoice in a new tab. How do you work in that tab?
  9. Q9. Which call cancels a JavaScript confirm dialog?
  10. Q10. When should you use JavascriptExecutor, for example to scroll an element into view?