Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Watir Testing Online Test

Topics Covered

  • HTML Elements
  • Site Navigation
  • Developing Tests
  • Page Elements

Useful for hiring

  • Watir Automation Engineer
  • QA Engineer – Watir

Start hiring job-fit candidates using this assessment


"Our recruitment team loves Interview Mocha especially for their skill assessments, simulators, and friendly support. Since using Interview Mocha, we interview only relevant candidates, and this has reduced our time to hire. Recruitment is no longer an hassle for us."

Christoph, e-Zest GmbH

Suppose you have an application which has the following URL link:

If you want to open this link from a Watir test script then, which of the following regular expressions can replace this link given that the GC_1_7P7_ part doesn't affect the location of the application?

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

    • /javascript.^getLocation\('1',%30'amend'\)/

    • /getLocation('1',%30'amend')/

    • /javascript.*getLocation\('1',%30'amend'\)/

    • /getLocation\('1',%30'amend'\)/


If the following link is used in string format in a Watir test case then, which of the following option shows the correctly escaped form of the same?


    • "script\:location\("\)port:8080"

    • "script:location\\("\\)port:8080"

    • "script//:location//(""

    • "script\\:location\\("\\)port\\:8080"


How can you access nested HTML frames present in a web application from an Internet Explorer instance, say instIE, created in a Watir test script?

    • instIE.frame().frame()

    • instIE.frame(instIE.frame())

    • instIE.frame(:parent, "parent_frame_name")

    • None of the mentioned

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates