galen icon indicating copy to clipboard operation
galen copied to clipboard

Enable configuration of browser capabilities with properties

Open tillsc opened this issue 9 years ago • 2 comments

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"

tillsc avatar Nov 11 '15 10:11 tillsc

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.

ishubin avatar Nov 17 '15 09:11 ishubin

So, could you provide an example of how to set the proxy for Galen tests please?

atwright147 avatar Jul 26 '17 16:07 atwright147