HomeExamsResourceITETAIVSPLWIC1001
ITETAIVSPLWIC1001

Infosys Certified Playwright Java Automation Tester

Practice with real exam-pattern questions for Infosys Certified Playwright Java Automation Tester. Each question includes a detailed explanation to help you understand the concept, not just memorise the answer. Try 10 questions free — no login required.

BeginnerResource60 min
Free questions

10 Infosys Certified Playwright Java Automation Tester practice questions with answers

Real Lex exam-pattern multiple-choice questions for the Infosys Certified Playwright Java Automation Tester certification. Each question includes the correct answer. The full question bank is available to Premium members.

  1. Question 1

    What is the purpose of using Playwright library in Java programming ?

    • Playwright is used for data analysis.Correct
    • BPlaywright is used for database management.
    • CPlaywright is used for creating concurrent and distributed applications.
    • DPlaywright is used for developing mobile applications.
  2. Question 2

    Which command is used to check the maven version in the system?

    • mvn -vCorrect
    • Bmvn -version
    • Cmaven -version
    • Dmaven -v
  3. Question 3

    Which playwright function is used to launch a browser in healdess mode?

    • launchBrowser()Correct
    • BstartBrowser()
    • CopenBrowser()
    • Dlaunch()
  4. Question 4

    What is the use of content() method ?

    • Helps in accessing the browser history.Correct
    • BHelps to get the page source of the webpage.
    • CAllows us to reload the webpage.
    • DAllows us to navigate to the content of the webpage.
  5. Question 5

    Which of the following is the correct way of taking screenshot of a full page?

    • page.screenshot(new Page.ScreenshotOptions().setPath(Paths.get("Target path of screenshot file")))Correct
    • Bpage.screenshot(new Page.ScreenshotOptions().setPath(Paths.set("Target path of screenshot file")))
    • Cpage.screenshot(new Page.ScreenshotOptions().setPath(Paths.get("Target path of screenshot file")).setClip("True"))
    • Dpage.screenshot(new Page.ScreenshotOptions().setPath(Paths.get("Target path of screenshot file")).setFullPage(true));
  6. Question 6

    Which of the following can help us maximize the browser window using Playwright?

    • driver.manage().window().maximize();Correct
    • Bpage.manage().window().setViewportSize();
    • C page.setViewportSize(screenWidth, screenHeight);
    • D page.setViewportSize(screenHeight, screenWidth);
  7. Question 7

    Which of the following code snippet is an alternate to its Selenium code?

    driver.findElement(By.id("body_txtPassword")).sendKeys("don@123");

    • page.locator("id=body_txtPassword").fill("don@123");Correct
    • Bpage.locator("id=body_txtPassword").send("don@123");
    • Cpage.findElement("id=body_txtPassword").fill("don@123");
    • Dpage.locator("id=body_txtPassword").fillKeys("don@123");
  8. Question 8

    What will be the output of the following code in the console?

     void automateCheckboxInteraction() throws Exception {
     
     	page.locator("id=body_txtUserID").fill("donhere");    
     	page.locator("id=body_txtPassword").fill("don@123");                  
     	page.locator("id=body_btnLogin").click();
     	
     	String pgtitle=page.title();
     	System.out.println(pageTitle);
        	
     	page.getByText("Change Password").click(); // Locate element by linktext
     	page.locator("id=body_cph_MyAccount_rblChangePassword_1").click();
     

    • Prints the link of "Change Password" in the console.Correct
    • BThe console is empty but the script runs successfully.
    • CPrints the login details of the user.
    • DPrints the title of the page
  9. Question 9

    Which of the following methods are available for selecting drop-down values ?

    1. Select by tag
    2. Select by value
    3. Select by index
    4. Select by text

    • 2 and 3Correct
    • B2,3 and 4
    • COnly 2
    • DAll of the above
  10. Question 10

    How would you read data from an excel file for parameterization in Playwright file ?

    import com.microsoft.playwright.*;
    public class ExcelParameterizationExample {
       public static void main(String[] args){
           try {
               FileInputStream file = new FileInputStream(new File("data.xlsx"));
               XSSFWorkbook workbook = new XSSFWorkbook(file);
               XSSFSheet sheet = workbook.getSheetAt(0);
               Iterator<Row> rowIterator = sheet.iterator();
               while (rowIterator.hasNext()) {
                   Row row = rowIterator.next();
                   Cell cell = row.getCell(0);
                   System.out.println(cell.getStringCellValue());
               }
               workbook.close();
               file.close();
           } catch (Exception e) {
               e.printStackTrace();
           }
       }
    }

    • Using Apache POI libraryCorrect
    • BUsing Java IO library
    • CUsing Playwright ExcelReader class
    • DUsing Java FileReader class
Pricing

Pay once. Clear every cert this year.

One subscription, full Telegram channel access, every PDF posted during your membership.

Monthly
50% OFF
₹1,300₹2,600
Per month · cancel anytime
  • Full access to all 1,357+ certifications
  • Monthly updated question banks
  • Telegram private channel access
  • Cancel anytime
Get Monthly
POPULAR
Quarterly
44% OFF
₹1,800₹3,200
That's ₹600/mo · billed for 3 months
  • Everything in Monthly
  • Save ₹2,100 vs monthly billing
  • Priority answer key requests
  • Best for increasing DQ score fast
Get Quarterly
BEST VALUE
Lifetime
52% OFF
₹2,400₹5,000
One-time · lifetime access
  • Everything in Quarterly
  • Lifetime channel access — no renewals
  • All future certifications included
  • Priority response from admin team
Get Lifetime
FAQ

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.

i
InfyLexDumps

Independent exam preparation platform for Infosys Lex certifications. Real exam-pattern question banks, monthly updates, 180K+ community members.

Join Premium Telegram
Contact
  • @prepflixadmin
  • admin@prepflix.net
This platform is an independent educational resource and is not affiliated with or endorsed by Infosys Ltd. All certification names referenced are property of their respective owners.
© 2026 InfyLexDumps
Join Premium Telegram