Complete the code to get the page title using Selenium WebDriver.
String title = driver.[1]();The getTitle() method returns the title of the current page.
Complete the code to get the current page URL using Selenium WebDriver.
String url = driver.[1]();The getCurrentUrl() method returns the URL of the current page.
Fix the error in the code to correctly print the page title.
System.out.println(driver.[1]);The method getTitle() must be called with parentheses to execute and return the title.
Fill both blanks to store the page title and URL in variables.
String pageTitle = driver.[1](); String pageUrl = driver.[2]();
getTitle() gets the page title, and getCurrentUrl() gets the current URL.
Fill all three blanks to print the page title, URL, and check if URL contains 'example'.
String title = driver.[1](); String url = driver.[2](); boolean containsExample = url.[3]("example");
Use getTitle() for title, getCurrentUrl() for URL, and contains() to check substring.
