Selenium WebDriver Online Test

Topics covered

  • MAQ (Multiple Answer Question)
  • MCQ (Multiple Choice Question)
  • Descriptive Question
  • White Board Simulator
  • Coding Simulator
  • Audio Question
  • Video Question
  • Case Study Question

Selenium WebDriver online test is created & validated by global subject matter experts (SME)s to assess expertise of candidates in writing Selenium WebDriver automation scripts- as per industry standards.
Selenium 2.0 includes the WebDriver API. WebDriver is a compact Object Oriented API when compared to Selenium1.0. It is designed to provide a simpler, more concise programming interface in addition to addressing some limitations in the Selenium-RC API. Selenium-WebDriver makes direct calls to the browser using each browser’s native support for automation.

Thus, the Selenium WebDriver online quiz helps recruiters & hiring managers to evaluate the expertise of candidates in creating test cases using Selenium Webdriver.

Selenium WebDriver test contains questions on following Topics:

  • Selenium API Testing

  • Selenese

  • Page elements

  • Selenese variables and debugging

  • Actions

The reports are generated instantly. Our hiring analytics on Selenium WebDriver assessment test will provide you with the detailed analysis of skills related strengths & weaknesses of the candidates that will help you in making right hiring decisions.

This pre-employment test is useful for hiring:
  • Quality Assurance Engineer
  • Selenium Test Lead
  • Senior Test Automation Engineer

Test details:

Selenium WebDriver skills test enables employers to identify & hire test engineers by evaluating their working skills and job readiness. For this reason, an emphasis is laid upon evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge.

The test contains MCQ's (Multiple Choice Questions), MAQ's (Multiple Answer Questions), Fill in the Blank, Descriptive, True or False.
Test Duration: 20 minutes

20 Application Questions

The Selenium WebDriver online test contains a combination of application and theory questions that help you to evaluate software testing & practical skills of candidates.

Selenium WebDriver Test

Question #1 of 3

Refer the given HTML code:

You wish to locate elements in HTML code by their label texts such that using ‘username’, you can access the ‘for’ attribute of the label. Which of the following is the correct way to do this?

    • selenium.Type(selenium.getAttribute("//label[text()='Username']/@for"), "xxx");

    • selenium.Type(selenium.getAttribute("//label[text()='for']/@Username"), "xxx");

    • selenium.Type(selenium.getAttribute("//@for[text()='Username']/Label"), "xxx");

    • None of the mentioned

Question #2 of 3

Suppose a site has following html line in its code:

text 1

text 2

text 3

text 4

Now, using selenium you want to get all the text in the div element except for the text in the tag. Which of the following code snippet can be used to do this?

    • sel = selenium('localhost', 4444, browser, my_url) 
      html = sel.get_eval("this.browserbot.getCurrentWindow().document.getElementById('1').innerHTML")

    • sel = selenium('localhost', 4444, browser, my_url) 
      html = sel.get_eval("this.browserbot.getCurrentWindow().document.getElementById(“div”).innerHTML")

    • sel = selenium('localhost', 4444, browser, my_url) 
      html = sel.get_eval("this.browserbot.getCurrentWindow().document.getElement(“div” – “h”).innerHTML")

    • sel = selenium('localhost', 4444, browser, my_url) 
      html = sel.get_eval("this.browserbot.getCurrentWindow().document.getElementById('1').getText")

Question #3 of 3

You are using selenium to capture the id of an element that will be generated randomly, but the format of your variable is something like divElement-12345. You wish to remove ‘divElement-‘ from the variable and convert it in the form ‘form-12345’ to access it in the following manner:
| type | //tr[@id='form-${variableName}']/td/form/fieldset/p[1]/input | Type this |

Which of the following code snippet can be used to achieve this?

Note: There can be multiple correct answers to this question.

    • storeAttribute | css=div[1]@id | divID 
      storeEval | '${divID}'.replace("divElement-", "") | number 
      type | css=tr[id='form-${number}'] > td > form > fieldset > p[1] > input | Type this

    • storeAttribute | //div[1]@id | divID 
      storeEval | '${divID}'.replace("divElement-", "") | number 
      type | //tr[@id='form-${number}']/td/form/fieldset/p[1]/input | Type this 

    • storeAttribute | //div[1]@id | divID 
      storeEval | '${divID}'.replace("divElement-", "form-") | number 
      type | //tr[@id='form-${number}']/td/form/fieldset/p[1]/input | Type this

Candidate Name
Assessment Name
Invited by
Assessment Date
IP Address

24.00 Out of 40.00
23 Minutes

Java EE




Oracle PL/SQL


Analytical Thinking


Note:If score<= 30% then its a Weakness. If score >=70% then its a Strength.


Java EE, Oracle PL/SQL, Analytical Thinking



Sign up for a free trial today

Get your free trial and test up to 10 candidates. No strings attached. No credit card required.


Schedule a Demo

How Interview Mocha works?

  • Add this test to your account

  • Invite candidates to take this test online

  • Candidates take the test

  • View and share actionable test reports

Trusted by leading brands worldwide

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • hexaware
Why hiring managers and recruiters across the globe love Interview Mocha
  • Largest number of ready pre-employment skill tests
  • Relevant test compositions and quality questions designed by Subject Matter Experts (IM SME)
  • Fastest custom test creation DNA
  • World’s most super easy skill assessment platform
  • High level of platform security implementation
  • Friendly and quick customer support
  • Ready to listen and implement your feedback, we are all ears
  • Affordable pricing

Sign up for a free trial today

Get your free trial and test up to 10 candidates. No strings attached. No credit card required.


Schedule a Demo