import [Link].
*;
import [Link];
import [Link];
import [Link];//Add required imports
public class CSSLocator//DO NOT change the class name
{
String fname;
static WebDriver driver;
public WebDriver createDriver() //DO NOT change the method signature
{
driver=[Link]();
return driver;
//Implement code to create Driver from DriverSetup and return it
}
public WebElement getCSSLocator(WebDriver driver) //DO NOT change the method
signature
{
WebElement element=[Link]([Link]("#username"));
return element;
/*Replace this comment by the code statement to get the Web element of username*/
/*Find and return the element */
public String getName(WebElement element) //DO NOT change the method signature
{
String fname=[Link]("placeholder");
return fname;
//Get the attribute value from the element and return it
}
public static void main(String[] args){
CSSLocator pl=new CSSLocator();
driver=[Link]();
WebElement element=[Link](driver);
String hi=[Link](element);
//Add required code
}
}