galen
galen copied to clipboard
Enable configuration of browser capabilities with properties
There seems to be no way to provide browser capabilities via properties (https://gitter.im/galenframework/galen?at=56431b5494df6212290da2b3). If there was a way to do this it would be possible to inject capabilities from outside galen.
A first idea would be to pass every value below a certain key into the capabilities:
galen.browserFactory.selenium.grid.firefox.firefox_profile = <serialized profile string>
galen.browserFactory.selenium.grid.chrome.proxy = http://...
galen.browserFactory.selenium.grid.chrome.chromeOptions.args = "--user-agent=FooBarBrowser"
To be honest I would prefer to avoid implementing this in Galen. Because there is a way for users to create WebDriver instance in their tests themselves. That way they have the freedom of setting any properties they want. But with this feature it makes it hard to maintain since it has to work for all major browsers and for each specific browser it has to be configured differently.
So, could you provide an example of how to set the proxy for Galen tests please?