In my current framework (Cucumber, Selenium webdriver, PageObject), we are declaring elements as below
CreateProfile.java //file name
public class CreateProfile {
private static final By FIRST_NAME = By.id("firstNmae");
private static final By LAST_NAME = By.id("lastNmae");
private static final By CLICK_SUBMIT = By.xpath(".//span[@title='{submit}']");
}
followed by methods to enter and click elements.
I want to pass more than one element reference like this
private static final By CLICK_SUBMIT = By.xpath(".//span[@title='{form_submit}']") || By.id("submit") ;
What to do if I want to pass more than one element reference for same element as above?