I need to make a test to login on 5 different sites. The issue is that some of them have a login button, and the others display directly the login form, to fill the username and password. The only thing in common between those sites that have a login button is that their class contains a "login" text in the name. I am using the POM model for the pages and identify the elements in the following way:
@FindBy(how = How.ID, using = "txtPassword") private WebElement passwordField;
Is there a way to find those login buttons using "contains"? What would be the best practice to handle this kind of operation?