I have a class that extends another. In the constructor I pass in a bunch of arguments but I've now realised I need to pass in different arguments based on what I'm running the code on:
public searchPage(WebDriver driver, LoadableComponent<?> parent, Properties props) {
super(driver, parent, Boolean.FALSE, props,action.UK);
In this example the action is using the UK value from the enum, my problem is if I run this on another client I may need to call action.FR
Is there a way I can put a condition in the constructor? For example if something in the prop file says FR then pass action.FR