Untitled
unknown
plain_text
a year ago
684 B
9
Indexable
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class HomePage extends BasePage {
@FindBy(css = "a[title='My Account']")
private WebElement myAccountLink;
@FindBy(linkText = "Register")
private WebElement registerLink;
@FindBy(css = "a[href*='/login']")
private WebElement loginLink;
public HomePage(WebDriver driver) {
super(driver);
}
public void clickMyAccountLink() {
myAccountLink.click();
}
public void clickLoginLink() {
loginLink.click();
}
public void clickRegisterLink() {
registerLink.click();
}
}
Editor is loading...
Leave a Comment