playwright-java-test-automation-architecture
playwright-java-test-automation-architecture copied to clipboard
How to override browser name and other property values
Is there any way to update browser name in the config file while sending different browsers from testNG?
tried this way but not working 1st way Properties props = new Properties(); ProjectConfig cfg = ConfigFactory.create(ProjectConfig.class, props); props.setProperty("browser", browserName); 2nd way ConfigFactory.setProperty("browser", browserName); ProjectConfig cfg = ConfigFactory.create(ProjectConfig.class);
while retrieving browser name form config().browser its returns default browser name which is defined in general.properties