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.
A `type alias` using `any` to allow flexible method definitions.
A `class` with `private` methods to restrict access.
An `enum` to list the required methods.
Verified Answer
Correct Option - a

To get all Infosys Certified Playwright Typescript Automation Tester Obj Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram