public class Page {
private WebElement submit;
}
there will be an element that can be located using the xpath expression
"//*[@id='submit']" or "//*[@name='submit']"
So from performance perspective, I will be glad to use @FindBy annotation way:
public class Page {
@FindBy(How.ID_OR_NAME, using="submit")
private WebElement loginbutton;
}
No comments:
Post a Comment