You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: