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

GET A DEMO

"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
Question

Suppose you have an application which has the following URL link:
javascript:GC_1_7_P7_getLocation('1',%30'amend')

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.

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

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

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

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

Question

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("127.0.0.1)port:8080

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

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

    • "script//:location//("127.0.0.1//)port//:8080"

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

Question

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?

Answer
    • 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 support@interviewmocha.com 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...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO