packagepageObjects;importorg.openqa.selenium.*;publicclassHomePage{WebDriverdriver;publicHomePage(WebDriverdriver){this.driver=driver;}publicvoidtitle(){StringactualTitle,expectedTitle;actualTitle=driver.getTitle();expectedTitle="Welcome: Mercury Tours";if(actualTitle.equalsIgnoreCase(expectedTitle)){System.out.println("Page Title Matched");}else{System.out.println("Page Title Not Matched");}}}
Dear User, Thank you for visitng KodingWindow. If you are interested in technical articles, latest technologies, and our journey further, please follow us on LinkedIn.