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.
Full question bank for this exam + 1,357+ others. Cancel anytime.
Join Premium10 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.
- 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.
- Question 2
Which command is used to check the maven version in the system?
- ✓mvn -vCorrect
- Bmvn -version
- Cmaven -version
- Dmaven -v
- Question 3
Which playwright function is used to launch a browser in healdess mode?
- ✓launchBrowser()Correct
- BstartBrowser()
- CopenBrowser()
- Dlaunch()
- 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.
- 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));
- 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);
- 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");
- 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
- 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
- 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
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.