Questions and Answers
Which design pattern is popularly used in test automation to create Object Repository for web UI elements?
Page Object Model
What is the advantage of using Page Object Model in test automation?
Reduces code duplication
What should be the name of the methods in the Page Class of Page Object Model?
Descriptive names
What is the purpose of the waitForPaymentScreenDisplay() method in Page Object Model?
Signup and view all the answers
What is the main task in UI Automation using Selenium WebDriver?
Signup and view all the answers
Which pattern is often used in conjunction with Page Object Model in Selenium?
Signup and view all the answers
What is the script maintenance like when using Page Object Model?
Signup and view all the answers
Which annotation is used in Page Factory in Selenium to find a WebElement?
Signup and view all the answers
What is the purpose of the initElements method in Page Factory in Selenium?
Signup and view all the answers
Which attribute can @FindBy accept in Page Factory in Selenium?
Signup and view all the answers
What is the purpose of Page Factory in Selenium?
Signup and view all the answers
What is the purpose of the @FindBy(className="barone") annotation in the Guru99Login class?
Signup and view all the answers
What is the purpose of the getHomePageDashboardUserName() method in the Guru99HomePage class?
Signup and view all the answers
What is the purpose of the test_Home_Page_Appear_Correct() method in the Test99GuruLoginWithPageFactory class?
Signup and view all the answers
What is the chief problem with script maintenance?
Signup and view all the answers
What is the advantage of using the Page Object Model (POM) in Selenium?
Signup and view all the answers
What is the purpose of the Guru99Login class in Selenium?
Signup and view all the answers
What is the purpose of the Guru99HomePage class in Selenium?
Signup and view all the answers
What is the purpose of the setUserName method in the Guru99Login class?
Signup and view all the answers
What is the purpose of the getHomePageDashboardUserName method in the Guru99HomePage class?
Signup and view all the answers
What is the purpose of the loginToGuru99 method in the Guru99Login class?
Signup and view all the answers
Which design pattern is used in Selenium WebDriver to create an Object Repository?
Signup and view all the answers
What is the purpose of using Page Factory in Selenium?
Signup and view all the answers
What is the purpose of the AjaxElementLocatorFactory in Selenium?
Signup and view all the answers
Which exception is thrown when an element is not found within the given time interval in Selenium?
Signup and view all the answers
What is the advantage of using the PageFactory pattern in Selenium?
Signup and view all the answers
What is the purpose of the objHomePage object in the given code snippet?
Signup and view all the answers
What is the purpose of the Assert.assertTrue statement in the given code snippet?
Signup and view all the answers
What is the purpose of the getHomePageDashboardUserName method in the given code snippet?
Signup and view all the answers
What is the purpose of the driver object in the given code snippet?
Signup and view all the answers