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.
The console is empty but the script runs successfully.
Prints the login details of the user.
Prints the title of the page
Verified Answer
Correct Option - d

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

Telegram