More than 3 parameters is definitely a code smell. I would look to using a container of some kind that I can iterate over, perhaps a Map<WebElement,
String>, in combination with a Builder. That is, use a Builder to create the Map, pass the map to createEmployee which just iterates over the Map to do something like this: