Infosys Certified Playwright Typescript Automation Tester Obj
Practice with real exam-pattern questions for Infosys Certified Playwright Typescript Automation Tester Obj. Each question includes a detailed explanation to help you understand the concept, not just memorise the answer. Try 10 questions free — no login required.
Full question bank for this exam + 1,357+ others. Cancel anytime.
Join Premium10 Infosys Certified Playwright Typescript Automation Tester Obj practice questions with answers
Real Lex exam-pattern multiple-choice questions for the Infosys Certified Playwright Typescript Automation Tester Obj certification. Each question includes the correct answer. The full question bank is available to Premium members.
- Question 1
A web development team ensures their new e-commerce website functions flawlessly across Google Chrome,Mozilla Firefox, and Apple Safari. They need a tool that can automate user interactions, take screenshots of critical pages, and capture network requests during their nightly build process. The team is also keen on using an open-source solution that provides a consistent API for all supported browsers.Which of the following tools would be the most suitable choice for this team's requirements?
- ✓Selenium WebDriver (Java binding)Correct
- BCypress.io
- CPlaywright
- DPuppeteer
- Question 2
Ana is a QA engineer writing an end-to-end test script for a single-page application which loads data dynamically, and elements often appear on the page after a short delay. She encountered flakiness in previous automation attempts with other tools due to elements not being ready for interaction. The engineer wants to ensure the Playwright scripts are robust and don't require them to manually insert sleep or wait commands after every dynamic content load.Which Playwright feature is specifically designed to address this challenge and improve the reliability of the test scripts?
- ✓Multi-page and multi-context supportCorrect
- BAutomatic waiting
- CRich automation capabilities
- DHeadless and headful modes
- Question 3
In Playwright with TypeScript, imagine you have a function that returns a 'Locator' for an interactive element. This element could either be a 'Submit' button or a 'More Info' link, both of which need to be clicked, but the 'More Info' link also requires checking its 'href' attribute. How would you best handle such a scenario to perform actions specific to each type while maintaining type safety?
- ✓Declare the element variable as 'any' to allow for flexible interaction.Correct
- BUse type assertion ('as`) to cast the element to `Locator` and then check its tag name.
- CCreate separate functions for handling buttons and links, calling the appropriate one based on a string parameter.
- DUtilize union types (e.g., `Locator | Locator`) along with a type guard to differentiate and interact safely.
- Question 4
Glenn is designing a Playwright automation framework using TypeScript. He wants to ensure all the custom Page Objects adhere to a common structure. What TypeScript feature would he use to maintain consistency across the framework?
- ✓An `interface` to define the shape and required methods.Correct
- BA `type alias` using `any` to allow flexible method definitions.
- CA `class` with `private` methods to restrict access.
- DAn `enum` to list the required methods.
- Question 5
You're automating a web application using Playwright. During one of the test runs, a confirmation dialog (window.confirm) unexpectedly appears due to a recent change in the frontend code.By default, how does Playwright handle dialogs?
- ✓Automatically accepts themCorrect
- BAutomatically dismisses them
- CRequires manual handling
- DIgnores them
- Question 6
What is a frame in the context of web applications?
- ✓A part of the web page that can load and display content independentlyCorrect
- BA type of image format
- CA section of the web page that cannot be modified
- DA type of CSS style
- Question 7
You are automating a login test case for multiple user roles (admin, editor, viewer) in a web application. Initially, you create separate test cases for each role with hardcoded usernames and passwords. A week later, the credentials for all roles are updated due to a security policy change.How does parameterization improve maintainability?
- ✓By making test scripts longerCorrect
- BBy requiring frequent updates to the test script
- CBy allowing updates to be made in the external data source instead of the test script
- DBy making test scripts more complex
- Question 8
You are testing a web-based banking application. When a user clicks on the "View Statement" link, the application opens the bank statement in a new browser window or tab How does multiple window handling helps you in this scenario?
- ✓Managing multiple tabs in a web browserCorrect
- BHandling multiple windows or pop-ups that appear during a test
- CTesting multiple applications simultaneously
- DManaging multiple user sessions
- Question 9
You are testing a RESTful API using Playwright with TypeScript. Your task is to validate the response of a GET request to the /users/1 endpoint of your application. You want to programmatically make the API call, verify the response code, and extract the user details in JSON format. Which of the following methods should you use to correctly send the HTTP GET request using Playwright?
- ✓page.request()Correct
- Bfetch()
- Crequest.newContext().get()
- DAPIRequestContext.get()
- Question 10
You are working on API automation using Playwright with TypeScript. Your project requires sending authenticated requests to multiple APIs, so you need to set up a reusable API request context. To start with this setup, what is the correct way to create a new API request context in Playwright?
- ✓await browser.newRequest()Correct
- Bconst request = await playwright.request.newContext();
- Cpage.newRequestContext();
- Dnew RequestContext();
Pay once. Clear every cert this year.
One subscription, full Telegram channel access, every PDF posted during your membership.
- Full access to all 1,357+ certifications
- Monthly updated question banks
- Telegram private channel access
- Cancel anytime
- Everything in Monthly
- Save ₹2,100 vs monthly billing
- Priority answer key requests
- Best for increasing DQ score fast
- Everything in Quarterly
- Lifetime channel access — no renewals
- All future certifications included
- Priority response from admin team
Common questions, straight answers.
A monthly-updated Telegram channel where we post real exam-pattern question banks and detailed answer keys for 1,357+ Infosys Lex certifications. You join once, you get every PDF posted during your membership.
Right after payment on our Graphy page, you'll receive a private invite link to the Telegram channel. Access is instant — usually under 30 seconds.
We compile question banks from the actual Lex test pattern, sourced and verified by 180K+ community members who've recently cleared these exams. Match rate is consistently 85–95%.
Every single month. When Infosys rolls out new versions of certifications, we post updated dumps within 7–10 days. You'll see channel activity weekly.
Clearing certifications is one of the highest-weighted DQ factors. Members typically clear 3–5 certifications in their first 3 months, which moves DQ scores up by a full band.