obj.findElement(By.className("signInBtn")).click();// tag name.className
// extracting text using locator.
Stringtext=obj.findElement(By.className("error")).getText();// if we will not add implicit time it will not get bcz sprit emd time is less then its display time.
System.out.println("Extracted text is:"+text);
// linktext locator.
obj.findElement(By.linkText("Forgot your password?")).click();